help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying arrays in GUD


From: Paulo J. Matos
Subject: Displaying arrays in GUD
Date: Sat, 7 Apr 2007 18:43:01 +0100

Hello,

I'm running GUD with gdb and I'd like to know what's the best way to
display an array of int*.
I have int *foo which I would like to display, when I click on it I
only get *foo. I understand that since the array size is not known, it
cannot display anything else, but is there a way to explicitly ask for
foo[1], foo[2]... etc?

More over, I have a global state variable db which is a * to a struct.
How can I ask GUD to show it to me? I tried watch but it seems to show
the contents of the struct only after it is modified.

Cheers,

--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK




reply via email to

[Prev in Thread] Current Thread [Next in Thread]