This is the mail archive of the archer@sourceware.org mailing list for the Archer 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]

Frames as scopes


I've been having a great time playing with the Python interface!

On IRC, Tom invited me to post suggestions.

Is there a way to look up a variable in the scope specified by a frame?  Saying

    gdb.lookup_symbol('argc',gdb.block_for_pc(gdb.current_frame().pc()),gdb.SYMBOL_VAR_DOMAIN)

seems circuitous; perhaps lookup_symbol could default the domain to
SYMBOL_VAR_DOMAIN, and accept a frame to indicate scope, defaulting to
the current frame.  Then one could simply say:

    gdb.lookup_symbol('argc')

and get what one expects.


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