This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Remote debugging: setting breakpoints in shared libraries
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Klaus Zeitler <Klaus dot Zeitler at alcatel-lucent dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 8 Feb 2012 20:41:40 +0100
- Subject: Re: Remote debugging: setting breakpoints in shared libraries
- References: <q5g4nvb6e5d.fsf@destgd0d00539.de.alcatel-lucent.com>
On Tue, 31 Jan 2012 17:16:30 +0100, Klaus Zeitler wrote:
> Now when I try running the same sequence with gdbserver on a remote host
> (and localhost replaced accordingly), gdb doesn't stop at the
> breakpoint. My test program doesn't stop.
It may be affected for example by not yet fixed in that version:
[patch] [i386] Fix {,un}prelinked libraries for attach/core-load
http://sourceware.org/ml/gdb-patches/2011-02/msg00630.html
http://sourceware.org/ml/gdb-patches/2011-04/msg00272.html
While there exist other methods for simplicity of the troubleshooting I would
connect the remote system via NFS and use `set sysroot' to that mounted
directory.
This will ensure the local symbol files match the remote files.
Regards,
Jan