From: Robert Trask <rt_trask@yahoo.com>
To: gdb@sources.redhat.com
Subject: Re: How to build & run ARM gdb?
Date: Wed, 14 May 2008 14:39:00 -0000 [thread overview]
Message-ID: <429032.90591.qm@web62013.mail.re1.yahoo.com> (raw)
As a follow on, I rebuilt the native gdb from 6.8 sources thus:
# ./configure
# make
# make install
It correctly interprets the arm elf file debug information, i.e. it's able to find symbols in source files via the "list" command etc.
Why is the simple act of cross-targeting gdb destroying this capability?
R.
----- Original Message ----
From: Robert Trask <rt_trask@yahoo.com>
To: gdb@sources.redhat.com
Sent: Tuesday, May 13, 2008 7:08:22 PM
Subject: How to build & run ARM gdb?
Hello,
I am doing remote ARM system development cross hosted on a Redhat FC4 machine.
For building gdb I do the following:
# ./configure --target=arm-none-eabi
# make
The
resulting gdb seems to work ok vis-a-vis connecting to the target via
the remote protocol but it has problems interpreting the debug info in
the executable thus:
(gdb) list <symbol_name>
No line number known for <symbol_name>.
Apparently this gdb can't understand the elf file?
But, the gdb that came with the RH distribution, ( GNU gdb Red Hat Linux (6.3.0.0-1.21rh) DOES understand the elf file and correctly finds the <symbol_name> in the appropriate source file.
Of course, since it was configured for "i386-redhat-linux-gnu" it has no hope of properly interacting with the remote ARM target.
I have tried all manner of different configurations (all accepted by config.sub). I get the same result.
What is happening here and how do I fix it?
I have tried this with gdb 6.7.1 and 6.8. I am using Redhat Fedore Core 4.
R.
next reply other threads:[~2008-05-14 14:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-14 14:39 Robert Trask [this message]
2008-05-14 16:29 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2008-05-14 2:08 Robert Trask
2008-05-14 2:45 ` Daniel Jacobowitz
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=429032.90591.qm@web62013.mail.re1.yahoo.com \
--to=rt_trask@yahoo.com \
--cc=gdb@sources.redhat.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