From: johnmb <johnmblackburn@googlemail.com>
To: gdb@sourceware.org
Subject: Error while mapping shared library sections
Date: Thu, 27 Oct 2011 15:45:00 -0000 [thread overview]
Message-ID: <32732200.post@talk.nabble.com> (raw)
I am debugging remotely and found that the performance of the link was quite
insufficient to use KDevelop - not unreasonable. So I am going back to using
GDB directly; this works when debugging locally but I am having problems
trying to debug remotely.
To start my debug session I first run a script containing the following :-
ruser=root@192.168.0.20
ssh ${ruser} 'gdbserver :2001 /home/programs/track'
This gives the expected listening on port 2001 message. then I type the
following in another terminal window:-
gdb track --command debug/fsf_gdb_remote
The script fsf_gdb_remote contains the following:-
set args -s 3 -i 1 -w /home/john/programs/
target remote 192.168.0.20:2001
Here is the following conversation in gdb:-
(gdb) b main
Breakpoint 1 at 0x804febd: file /home/john/kas_master/trunk/src/main.cc,
line 117.
(gdb) c
Continuing.
Error while mapping shared library sections:
/lib/libfsfutils.so: No such file or directory.
Error while mapping shared library sections:
/lib/libstdc++.so.6: No such file or directory.
Error while mapping shared library sections:
/lib/tls/libm.so.6: No such file or directory.
Error while mapping shared library sections:
/lib/tls/libc.so.6: No such file or directory.
Error while mapping shared library sections:
/lib/tls/libdl.so.2: No such file or directory.
Error while mapping shared library sections:
/lib/libz.so.1: No such file or directory.
Error while mapping shared library sections:
/lib/libgmodule-2.0.so.0: No such file or directory.
Error while mapping shared library sections:
/lib/libpcre.so.3: No such file or directory.
Breakpoint 1, main (argc=1, argv=0xbfbd2994) at
/home/john/kas_master/trunk/src/main.cc:117
117 int la=-1; // Language
(gdb)
All the libraries are at the locations in the remote target as given in the
error messages so I don't
understand why this is happening. I did read in several google located
accounts that this is fixed by
upgrading gdb to version 6.1; however I am using version 6.8 so it can't be
that.
Any ideas would be most gratefully accepted.
--
View this message in context: http://old.nabble.com/Error-while-mapping-shared-library-sections-tp32732200p32732200.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
next reply other threads:[~2011-10-27 15:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-27 15:45 johnmb [this message]
2011-10-27 16:17 ` Joel Brobecker
2011-10-27 17:00 ` Pedro Alves
-- strict thread matches above, loose matches on Subject: below --
2008-04-15 8:46 spas
2008-04-15 15:06 ` 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=32732200.post@talk.nabble.com \
--to=johnmblackburn@googlemail.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