This is the mail archive of the gdb@sourceware.org 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: sysroot and softlinks


> On Nov 4, 2015, at 10:15 AM, Andreas Schwab <schwab@suse.de> wrote:
> 
> <Paul_Koning@Dell.com> writes:
> 
>> The other solution would be for solid_find to test for this case: check if
>> the name is a softlink and if so, whether its target is absolute.  If yes,
>> prefix sysroot onto the target and repeat.
> 
> How would you mark symlinks that are supposed to be relative to the host
> root?

One possible answer is not to handle that case.  Another possibility is to try that if the sysroot-prefixed version doesn't work.

The reason for trying sysroot first is that the name on the host may in fact work, but may be the wrong file (different OS or different machine architecture).

	paul


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