Remote debugging: setting breakpoints in shared libraries

Jan Kratochvil jan.kratochvil@redhat.com
Thu Feb 16 13:35:00 GMT 2012


On Thu, 16 Feb 2012 13:07:08 +0100, Klaus Zeitler wrote:
>     Jan> It may be affected for example by not yet fixed in that version:
>     Jan> 	[patch] [i386] Fix {,un}prelinked libraries for attach/core-load
>     Jan> 	http://sourceware.org/ml/gdb-patches/2011-02/msg00630.html
>     Jan> 	http://sourceware.org/ml/gdb-patches/2011-04/msg00272.html
>     Jan>
>     Jan> While there exist other methods for simplicity of the
>     Jan> troubleshooting I would connect the remote system via NFS and
>     Jan> use `set sysroot' to that mounted directory.
> 
> The sources are distributed over a few clearcase vobs.

Source files do not matter for GDB operations, they are only displayed to the
user.  Library files (*.so*) matter for breakpoints placing/hit.


> Maybe it's
> easier if I just install a newer gdb. Since the patch above is quite
> new, I wonder if it already made it into the last official release (7.4)?

Yes; you can see the patch in gdb/ChangeLog there.


Regards,
Jan



More information about the Gdb mailing list