Re: gdb symbol problem

Hushan Jia
2009-12-27T02:16:39Z

On Sat, Dec 26, 2009 at 4:55 PM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> 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.
I invoke gdb like this:

[hushan@hushan-t linux-2.6.31.3]$ gdb ./vmlinux
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) set remotebaud 115200
(gdb) target remote /dev/pts/5
(gdb) Remote debugging using /dev/pts/11
0xc0467118 in ?? ()
(gdb) where
#0  0xc0467118 in ?? ()
#1  0xc077db2d in ?? ()
#2  0x00000000 in ?? ()

> My crystal ball tells me you didn't supply GDB with the executable you
> are running.
>
> Cheers,
> --
> Paul Pluzhnikov
>

--
Thanks & Regards,
Hushan Jia