Re: Finding ld.so dynamic loader

Daniel Jacobowitz
2008-01-30T17:47:03Z

On Wed, Jan 30, 2008 at 09:00:35AM -0800, Michael Eager wrote:
> Apparently, there is some error in parsing "set sysroot":
>
> (gdb) set sysroot /tmp
> No symbol "sysroot" in current context.

I suspect your version of GDB predates the "set sysroot" name;
solib-absolute-prefix is a lot older.

> IMO, if this prefix is not set by the user, the environment
> symbol or path should be searched, with the host system searched
> as a final choice. I can create a patch to do this if desired.

It's harder than it sounds to figure out whether we're native
debugging or remote debugging once you're down in the shared library
code; I don't think it's worth it. I have no preference whether we
search the solib-search-path before or after the sysroot, though I am
a little worried about breaking existing setups...

--
Daniel Jacobowitz
CodeSourcery