delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/23/03:10:11

X-Authentication-Warning: ieva01.lanet.lv: pavenis owned process doing -bs
Date: Wed, 23 Dec 1998 10:08:14 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Bonifati <abonifati AT telsa DOT it>
cc: djgpp AT delorie DOT com
Subject: Re: question about Rhide
In-Reply-To: <75on7n$q7o$1@fe2.cs.interbusiness.it>
Message-ID: <Pine.A41.4.05.9812231006110.43950-100000@ieva01.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com


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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019