[PATCH 2/4] Fix some aspects of python lazy string handling: python
Doug Evans via gdb-patches
gdb-patches@sourceware.org
Thu Mar 16 16:59:00 GMT 2017
On Sun, Nov 6, 2016 at 5:14 PM, Doug Evans <dje@google.com> wrote:
> Hi. This is the python side of the patch set.
>
> 2016-11-06 Doug Evans <dje@google.com>
>
> PR python/17728, python/18439, python/18779
> * python/py-lazy-string.c (lazy_string_object): Clarify use of
> LENGTH
> member. Change type of TYPE member to PyObject *. All uses
> updated.
> (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
> (gdbpy_create_lazy_string_object): Flag bad length values.
> Handle TYPE_CODE_ARRAY with possibly different user-provided length.
> Handle typedefs in incoming type.
> (stpy_lazy_string_elt_type): New function.
> (gdbpy_extract_lazy_string): Call it.
> * python/py-value.c (valpy_lazy_string): Flag bad length values.
> Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
> typedefs in incoming type.
Rebased, re-regression tested on amd64-linux, and committed.
[I'll post the committed patch as soon as I can get sendmail on my box
working again, bleah. We still don't allow attachments do we?]
More information about the Gdb-patches
mailing list