This is the mail archive of the gdb@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: can pahole print a struct definition in a given CU?


On Wed, Jan 2, 2013 at 11:56 AM, Doug Evans <dje@google.com> wrote:
> [...]
> Thus,
> what about adding a "context" parameter to parse_and_eval, etc.?
> And then provide a way to specify that context (e.g., both from the
> CLI and from Python).
>
>[...]
>
> E.g., something like: (gdb) with-symtab bar.c p foo+baz
> or whatever.

[Sorry for the followup.]
To make that work with breakpoint expressions, etc., it would be
preferable to still encode the symtab in the expression string, but at
an outer level and not embedded in it.
I realize this syntax is problematic, but for illustration's sake: p
(foo+baz)@bar.c

>From Python: gdb.parse_and_eval ("foo+baz", symtab=blah) or whatever.


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