From: Arun Biyani <abiyani@unix.telasic.com>
To: gdb@sourceware.org
Subject: Setting library path
Date: Mon, 08 Jan 2007 19:04:00 -0000 [thread overview]
Message-ID: <45A295B3.6010504@unix.telasic.com> (raw)
I have been trying to setup GDB for cross debugging. Host x86 Linux.
Remote Coldfire 5272. Gdb behaves
strangely. Setting a breakpoint causes illegal instruction trap after
the breakpoint is executed. While searching
the web, I came across this hint below.
* When cross-debugging (i.e. when the remote system is running a
different OS or on a different processor type),
you may have to set the path gdb uses to find shared libraries
when you start gdb, or it will fail with strange errors.
The GDB manual is silent on this important topic; Daniel
Jacobowitz told me about it, and I also found some
doc about it at Axis Communications. My recipe takes care of this
for my environment, but you may need to
futz around a bit with this if gdb acts insane on startup.
How do I tell gdb where the libraries are? I am using "m68k-elf-gdb"
which I found at snapgear.org. On the
system, I can see /usr/local/m68k-uclinux/lib
[lib$:617] ls
m5407/ m5200/ libstdc++.a crti.o libpthread.a
mcpu32/ libiberty.a libstdc++.la* crtn.o libresolv.a
m5307/ libssp.a libsupc++.a libc.a librt.a
m528x/ libssp_nonshared.a libsupc++.la* libcrypt.a libutil.a
m68000/ libssp_nonshared.la* crt0.o libm.a elf2flt.ld
m5206e/ libssp.la* crt1.o libnsl.a ldscripts/
[tmp$:526]
Are these the libraries gdb is looking for?
Thx
next reply other threads:[~2007-01-08 19:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-08 19:04 Arun Biyani [this message]
2007-01-08 19:16 ` 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=45A295B3.6010504@unix.telasic.com \
--to=abiyani@unix.telasic.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