This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] [RFC] python: gdb.Type: strip typedefs past pointers too
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Paul Bolle <pebolle at tiscali dot nl>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 20 Sep 2010 10:32:22 +0100
- Subject: Re: [PATCH] [RFC] python: gdb.Type: strip typedefs past pointers too
- References: <1284753356.21566.10.camel@localhost.localdomain>
On 09/17/2010 08:55 PM, Paul Bolle wrote:
> 0) gdb.Type.strip_typedefs() stops stripping types if it encounters a
> type that is a pointer to a typedef:
>
> 1) I drafted a patch (pasted below this message) that works around this
> limitation:
I think the current behaviour is correct. And we are limited in what
we can change in these situations. Would it break existing scripts?
Still, I like your patch. Would you consider submitting it so that it
can be turned on (off by default) via keyword? (i.e. a recurse=True
keyword). That would allow us to preserve the existing functionality,
but allow the user an API friendly way for this alternate recursive
behaviour?
Cheers,
Phil