Re: gdbserver, sysroot, prelink

Daniel Jacobowitz
2004-10-05T13:37:07Z

On Tue, Oct 05, 2004 at 08:47:43AM -0400, Andrew Cagney wrote:
> >On Mon, Oct 04, 2004 at 12:00:03PM -0700, Felix Lee wrote:
> >
> >>>Daniel Jacobowitz <drow@false.org>:
> >>
> >>>>> How does this make --with-sysroot useless? That's exactly what
> >>>>sysroot
> >>>>> is supposed to do - point it where you keep the exact libraries of the
> >>>>> machine. I usually point it to an NFS server.
>
> Is there a command to change this (testcase, doco)? I guess the lack of
> a command is the reason for not having it always enabled.

All --with-sysroot does is add some fancy logic for setting
solib-absolute-prefix. Without it, the default is "", which is correct
for native debugging. That's why it's not always enabled.

You can override it just by setting solib-absolute-prefix.

> (Hmm, I wonder, did GDB check that the shlibs it was loading were
> compatible with the main executable?)

No, it doesn't. That's a little tricky...

--
Daniel Jacobowitz