Dereferencing pointers on "backtrace full"

Tom Tromey tromey@redhat.com
Mon Sep 14 15:44:00 GMT 2009


>>>>> "Shadowcat" == Shadowcat  <shadowcat@phasethrough.com> writes:

Shadowcat> Is there any way for GDB to do this?  I'd like to be able to
Shadowcat> type "bt full" and get, at a quick glance, the exact values
Shadowcat> of all the pointers referenced by local variables.  It would
Shadowcat> make things a lot easier in a lot of situations.

There is no built-in way to do this that I know of.

You might be able to do it using Python scripting, in CVS GDB.  I am not
certain... we have a "backtrace" written purely in Python on the archer
python branch, but offhand I don't recall whether all the infrastructure
bits needed for this have been pushed upstream yet.

Tom



More information about the Gdb mailing list