Pythons scripting API question

Evan Driscoll driscoll@cs.wisc.edu
Wed May 30 18:10:00 GMT 2012


Hi,

I'd like to get a list of the local variables in a frame, or at least 
the parameters. I'm looking through the documentation of the Python API, 
and not seeing how to do it.

In some sense, I'm trying to write a command that behaves a bit like 
'info locals', but outputs in a different format. (And, of course, I'd 
prefer not to parse that. There's also some other stuff I want to do as 
well.)

I'm using GDB 7.4.1 with Python 2.7.1.

Evan



More information about the Gdb mailing list