Re: Pb when calling a nested function in the inferior

Joel Brobecker
2001-07-31T01:36:00Z

> > > (gdb) x/i get_value.0
> > > No symbol "get_value" in current context.
> >
> > That's curious. With my version of gdb, I don't get the same result
> > (using GNU gdb 2001-07-30-cvs (MI_OUT)):
> > (gdb) x/10i get_value.0
> > A parse error in expression, near `'.
> > (gdb) x/4i get_value
> > 0x8048468 <get_value>: push %ebp
> > 0x8048469 <get_value+1>: mov %esp,%ebp
> > 0x804846b <get_value+3>: sub $0x4,%esp
> > 0x804846e <get_value+6>: mov %ecx,0xfffffffc(%ebp)
>
> Which vesion of gcc are you using? (I'm using 2.96 from Red Hat 7.0.)

I'm using 2.95.2 20000220 (Debian GNU/Linux) (debian potato). I get the
same results with gcc 2.8.1.

--
Joel