This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb symbol problem
On Tue, Dec 22, 2009 at 8:47 PM, Hushan Jia <hushan.jia@gmail.com> wrote:
> Hi, I compiled the code with -g -ggdb flags, but it seems gdb cannot
> show symbols
> correctly, instead it shows all ??
>
> Remote debugging using /dev/pts/11
> 0xc0467118 in ?? ()
> (gdb) where
> #0 ?0xc0467118 in ?? ()
> #1 ?0xc077db2d in ?? ()
> #2 ?0x00000000 in ?? ()
>
> how to solve this problem?
It might help for you to provide your complete GDB session, from
invocation to the "failing" where command.
My crystal ball tells me you didn't supply GDB with the executable you
are running.
Cheers,
--
Paul Pluzhnikov