This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Pb when calling a nested function in the inferior
On Jul 31, 9:24am, Joel Brobecker wrote:
> > BTW, GDB isn't particularly graceful in its handling of the ``get_value.0''
> > symbol. E.g, observe what happens when I do ``x/i get_value.0'':
> >
> > (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.)
Kevin