can pahole print a struct definition in a given CU?

Doug Evans dje@google.com
Wed Jan 2 19:06:00 GMT 2013


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.



More information about the Gdb mailing list