This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Disabling sysroot
>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:
>> > It would be even nicer to have a way to 'turn off' sysroot > for
>> this case. Something like "unset sysroot". I'm not > sure if
>> "unset" is something that GDB supports.
>>
>> It is, but unsetting sysroot does not mean what you want. Without
>> a sysroot, libraries are searched for in the root filesystem on
>> the host. You want to actually disable searching by full path;
>> gdb has no option for that.
Marc> From what I understand, it would be nice if unset sysroot
Marc> disabled sysrtoot, while an explicit set sysrtoot "/" be used
Marc> to search from the root. But, for the sake of backwards
Marc> compatibility, this should probably be left alone and /dev/null
Marc> used for sysrtoot to disable it.
There should be a user-friendly way to disable sysroot, and that
should be on by default in a cross-gdb.
paul