This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/4] Fix some aspects of python lazy string handling: python
- From: "Doug Evans via gdb-patches" <gdb-patches at sourceware dot org>
- To: gdb-patches <gdb-patches at sourceware dot org>, Eli Zaretskii <eliz at gnu dot org>, Phil Muldoon <pmuldoon at redhat dot com>
- Date: Thu, 16 Mar 2017 09:57:47 -0700
- Subject: Re: [PATCH 2/4] Fix some aspects of python lazy string handling: python
- Authentication-results: sourceware.org; auth=none
- References: <94eb2c0339f25be7660540abbfab@google.com>
- Reply-to: Doug Evans <dje at google dot com>
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?]