Mail Archives: djgpp/1998/02/20/11:30:51
Andreas Tscharner wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
>
> On Wed, 18 Feb 1998, Vlad Pambucol wrote:
>
> > Hello
> >
> > I rewrite my question:
> > I have this program in rhide:
> > int *tst;
> > ....
> > tst=alloca(100);
> >
> > I want to see all the elements of tst in watch. How could I do
> > that??????
>
> Type *tst
> > Please, help me.
> > In Borland C was: tst,100
> >
> > Second question: how could I di\ysplay a watch quantitie in hex?????
>
> printf("%x", number);
That is not exactly the answer he was looking for.
This is how to print out the value to user screen.
What he was looking for was
<Ctrl>F7
/x *tst <ret>
to have the value of *tst be displayed in hex in the watch
window of RHIDE.
I cannot remember the repeat operator off-hand, IIRC
it would be something like
/100 *tst
but I would not believe me but instead check the
gdb info files.
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -