This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdbserver, sysroot, prelink


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]