From: Pedro Alves <palves@redhat.com>
To: crquan <crquan@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: gdb cross debugging with core files: no backtrace and no sharedlibrary loading
Date: Fri, 05 Jul 2013 14:17:00 -0000 [thread overview]
Message-ID: <51D6D57E.6070302@redhat.com> (raw)
In-Reply-To: <CAH5vBdKZeUdyLfMZYNnK5i15Z5najcQiML1cn=6ByFP1XxV++w@mail.gmail.com>
On 07/02/2013 10:32 AM, crquan wrote:
> Hi all,
>
> I have been using gdb-7.3 for my arm linux board projects for a long time,
> for most applications memory crash problems I debug the program with a
> core file under gdb, with correct sysroot and solib-search-path, the
> backtrace command
> was always able to indicate where it crashed,
> but with a recent ported program, it ceased working, no any symbol
> from sharedlibrary loaded, and backtrace just gave addresses with no
> symbol,
> that I cannot guess at that address is it a function, from binary text
> or a library text section?
>
> I'm not sure is this a gdb bug or I used it wrong, I compiled a
> gdb-7.6 but got same; want to see if any one met same or similar
> error, and how can I manually load symbol table from those libraries?
> any suggests or comments are welcome,
> Thanks,
Hard to say... If you've given gdb the correct sysroot, _and_ the
correct program binary, than this should work, so it would sounds like
a bug. Does this happen only with core files? IOW, debugging live
programs works fine?
--
Pedro Alves
next prev parent reply other threads:[~2013-07-05 14:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-02 9:32 crquan
2013-07-05 14:17 ` Pedro Alves [this message]
2013-07-05 18:50 ` crquan
2013-07-24 14:08 ` Pedro Alves
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=51D6D57E.6070302@redhat.com \
--to=palves@redhat.com \
--cc=crquan@gmail.com \
--cc=gdb@sourceware.org \
/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