X-Authentication-Warning: ieva01.lanet.lv: pavenis owned process doing -bs Date: Wed, 23 Dec 1998 10:08:14 +0200 (WET) From: Andris Pavenis To: Bonifati cc: djgpp AT delorie DOT com Subject: Re: question about Rhide In-Reply-To: <75on7n$q7o$1@fe2.cs.interbusiness.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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)