This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [RFC] python: gdb.Type: strip typedefs past pointers too


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]