This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Disabling sysroot
- From: Daniel Jacobowitz <drow at false dot org>
- To: Marc Khouzam <marc dot khouzam at ericsson dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 4 Jun 2008 11:13:13 -0400
- Subject: Re: Disabling sysroot
- References: <6D19CA8D71C89C43A057926FE0D4ADAA04291110@ecamlmw720.eamcs.ericsson.se> <200805141603.35204.pedro@codesourcery.com> <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD49@ecamlmw720.eamcs.ericsson.se>
On Wed, Jun 04, 2008 at 09:34:02AM -0400, Marc Khouzam wrote:
> Hi,
>
> in the doc it says:
>
> If you want to use `solib-search-path' instead of
> `sysroot', be sure to set `sysroot' to a nonexistent directory to prevent GDB
> from finding your host's libraries.
>
> Is there a recommended way to turn off sysroot?
> I can set it to something like /what/are/the/odds/of/this/dir/actually/existing
> But it is not very elegant.
I use /dev/null, which will never be a directory.
There's no way to disable sysroot; setting it to empty is the same as
not setting it at all, i.e. use the host's libraries.
> Or is setting sysroot to anything not starting with a / sufficient?
A relative path may be a valid sysroot; GDB will search from its
current directory (there's no special check for absolute paths).
--
Daniel Jacobowitz
CodeSourcery