Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Hushan Jia <hushan.jia@gmail.com>
To: Paul Pluzhnikov <ppluzhnikov@google.com>
Cc: gdb@sourceware.org
Subject: Re: gdb symbol problem
Date: Sun, 27 Dec 2009 02:16:00 -0000	[thread overview]
Message-ID: <e38b6a940912261816k6f16227by96d16b315715b695@mail.gmail.com> (raw)
In-Reply-To: <8ac60eac0912260055o2d6bcb6cld7f8830e947cdd7@mail.gmail.com>

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


  reply	other threads:[~2009-12-27  2:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-23  4:48 Hushan Jia
2009-12-26  8:55 ` Paul Pluzhnikov
2009-12-27  2:16   ` Hushan Jia [this message]
2009-12-27  3:36     ` Paul Pluzhnikov
2009-12-27  3:45       ` Hushan Jia
2009-12-28  2:38         ` Jie Zhang
2009-12-28  4:14           ` Hushan Jia
2009-12-28  4:22             ` Jie Zhang
     [not found]               ` <e38b6a940912272109i48efc394u9985327575437f0f@mail.gmail.com>
2009-12-28  6:44                 ` Jie Zhang
2009-12-28  7:37                   ` Hui Zhu
2009-12-28 10:28                     ` Hushan Jia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e38b6a940912261816k6f16227by96d16b315715b695@mail.gmail.com \
    --to=hushan.jia@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=ppluzhnikov@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox