From: Ruttmann <ruttmann@bartels.de>
To: buildroot@busybox.net
Subject: [Buildroot] generating gdb for the target
Date: Wed, 18 Mar 2009 05:47:14 -0700 (PDT) [thread overview]
Message-ID: <22556796.post@talk.nabble.com> (raw)
Hello,
i had some difficulties in using the GDB on the target. The first message
was "Sorry Dave, i can't do that, unknown symbol format elf32-i386"
After some research i found the advice that the readelf.o object is missing,
so the debugger isn't able to read the object file.
In the gdb/config.log i found the test "checking for ELF support in BFD"
which fails because of an unresolved symbol to __lxstat in libiberty.
The base problem was the library include order: the gdb want's to link
against it's own libiberty.a but the order is
<buildroot>/build_i386/staging_dir/lib
<buildroot>/build_i386/staging_dir/usr/lib
../bfd
../libiberty
so the libiberty.a from <buildroot>/build_i386/staging_dir/usr/lib is used
which is linked against the libc of the host system.
After moving the local directories before the staging directories by
modifying the <buildroot>/toolchain_build_i386/gdb-6.8/gdb/configure, the
"checking for ELF support in BFD" was successful, the readelf.o was included
and gdb works like a dream on the target.
Hope this helps someone, maybe the gdb developers can change the library
order or the buildroot team can create a patch to do that.
--
View this message in context: http://www.nabble.com/generating-gdb-for-the-target-tp22556796p22556796.html
Sent from the BuildRoot mailing list archive at Nabble.com.
next reply other threads:[~2009-03-18 12:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-18 12:47 Ruttmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-03-11 13:36 [Buildroot] generating gdb for the target Craig Lawton-Devine
2010-03-11 16:45 ` Craig Lawton-Devine
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=22556796.post@talk.nabble.com \
--to=ruttmann@bartels.de \
--cc=buildroot@busybox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.