Pythons scripting API question

Evan Driscoll
2012-05-30T18:10:42Z

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