Pythons scripting API question

Keith Seitz keiths@redhat.com
Wed May 30 23:12:00 GMT 2012


On 05/30/2012 03:42 PM, Evan Driscoll wrote:
> Instead, I have to use
>
> (gdb) python print gdb.selected_frame().read_var(n)
> {argc = 6742752, argv = 0x0, use_windows = -7696, interpreter_p = 0x0}
>
>
> Is this just a version difference?

It appears that Symbol.value was added on 2012-02-07 to address 
python/12027. That bug shows the target milestone to be 7.5, so I'm 
guessing that although this was fixed before the 7.4.1 release, it was 
not back-ported to that release.

In other words, yes, it does appear to be a difference between your 
version of gdb (7.4.1) and mine (7.4.50, aka CVS HEAD).   :-)

Keith



More information about the Gdb mailing list