Mail Archives: djgpp/1998/12/23/03:10:11
On Tue, 22 Dec 1998, Bonifati wrote:
> I'm an italian student. I have a question about RHIDE. Please answer. Thank
> you !
>
> How can I watch arrays? I now a pointer is equivalent to an array in C,
> but if I want to see an array represented by a pointer variable, let's say
> int *a; of 5 elements, I'm obliged to write (in the "Add to watch list"
> box):
>
> a[0]
> a[1]
> a[2]
> a[3]
> a[4]
>
> Is there a shorter way? (When I define a static array, for example
> int a[5], it is enough writing "a" in the Add to watch list box to watch
> the array)
>
'a[0]@5' or '*a AT 5'
or '/x a[0]@5' if You want to watch it in hex format
Hint: read docs of gdb (it's there)
- Raw text -