This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/13989] gdb invalid search order for shared libraries bycross debuging
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 18 Apr 2012 11:45:16 +0000
- Subject: [Bug gdb/13989] gdb invalid search order for shared libraries bycross debuging
- Auto-submitted: auto-generated
- References: <bug-13989-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13989
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
--- Comment #1 from Pedro Alves <palves at redhat dot com> 2012-04-18 11:45:16 UTC ---
I'm guessing this use case wasn't originally considered, because it doesn't
look like how set sysroot/solib-search-path are meant to be used.
(gdb) help set solib-search-path
Set the search path for loading non-absolute shared library symbol files.
^^^^^^^^^^^^
This takes precedence over the environment variables PATH and LD_LIBRARY_PATH.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This command is there mostly to help targets like Windows that don't report to
the debugger the full path to the shared library. GNU/Linux always works with
full patchs, such as "/usr/lib/libjpeg.so.8".
The normal use of "set sysroot" is to point that at a directory that contains
_all_ the libraries the target reports as loaded (or simply, the copy of the
target's whole root filesystem). IOW, make the sysroot wholly self contained
(you can use symlinks though), and forget about solib-search-path.
Or, with GDB >= 7.0, point the sysroot at "remote:", and GDB will fetch the
libraries from the target automatically (but won't work in the end if you strip
the copies of the libraries on the target, as GDB will work with the stripped
copies then).
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.