* Dereferencing pointers on "backtrace full"
@ 2009-09-14 10:21 Shadowcat
2009-09-14 15:44 ` Tom Tromey
0 siblings, 1 reply; 4+ messages in thread
From: Shadowcat @ 2009-09-14 10:21 UTC (permalink / raw)
To: gdb
Is there any way for GDB to do this? I'd like to be able to type "bt
full" and get, at a quick glance, the exact values of all the pointers
referenced by local variables. It would make things a lot easier in a
lot of situations.
Thanks for any help you can give!
Shadowcat
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Dereferencing pointers on "backtrace full"
2009-09-14 10:21 Dereferencing pointers on "backtrace full" Shadowcat
@ 2009-09-14 15:44 ` Tom Tromey
2009-09-15 17:36 ` Michael Snyder
0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2009-09-14 15:44 UTC (permalink / raw)
To: Shadowcat; +Cc: gdb
>>>>> "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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Dereferencing pointers on "backtrace full"
2009-09-14 15:44 ` Tom Tromey
@ 2009-09-15 17:36 ` Michael Snyder
2009-09-15 19:02 ` Tom Tromey
0 siblings, 1 reply; 4+ messages in thread
From: Michael Snyder @ 2009-09-15 17:36 UTC (permalink / raw)
To: tromey; +Cc: Shadowcat, gdb
Tom Tromey wrote:
>>>>>> "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.
Using the old-style gdb scripting language:
while (1)
info locals
up
end
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Dereferencing pointers on "backtrace full"
2009-09-15 17:36 ` Michael Snyder
@ 2009-09-15 19:02 ` Tom Tromey
0 siblings, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2009-09-15 19:02 UTC (permalink / raw)
To: Michael Snyder; +Cc: Shadowcat, gdb
>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:
Tom> You might be able to do it using Python scripting, in CVS GDB. I am not
Tom> certain... we have a "backtrace" written purely in Python on the archer
Tom> python branch, but offhand I don't recall whether all the infrastructure
Tom> bits needed for this have been pushed upstream yet.
Michael> Using the old-style gdb scripting language:
Michael> while (1)
Michael> info locals
Michael> up
Michael> end
This doesn't dereference pointers.
Tom
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-15 19:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-14 10:21 Dereferencing pointers on "backtrace full" Shadowcat
2009-09-14 15:44 ` Tom Tromey
2009-09-15 17:36 ` Michael Snyder
2009-09-15 19:02 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox