How to fix solib path name?
Aleksandar Ristovski
aristovski@qnx.com
Wed Jul 8 15:38:00 GMT 2009
Pedro Alves wrote:
> On Wednesday 08 July 2009 16:14:41, Aleksandar Ristovski wrote:
>> Pedro Alves wrote:
>>> On Wednesday 08 July 2009 15:45:23, Aleksandar Ristovski wrote:
>>>> See solib_find comment in "solib.c" for figuring out how it
>>>> looks for it.
>>>>
>>>> You can provide "find_and_open_solib" in your target_ops for
>>>> customizing it (in case you want to provide "default" search
>>>> algorithm when built-in solib-search-path mechanism fails to
>>>> find it).
>>> Please don't go there, it's not really needed.
>>>
>> I thought the mechanism worked quite nicely. For us at least.
>>
>> If solib-search-path is not set, we end up searching solibs
>> using find_and_open_solib.
>>
>> When solib-search-path is set, then it takes precedence and
>> only if solib is not found there, we fallback to
>> find_and_open_solib.
>>
>> What would you do differently?
>
> Use "(gdb) set sysroot".
>
That is for absolute paths. For relative paths
find_and_open_solib is still a way to go IMHO - if you
disagree I would like to hear your rationale.
Thanks,
Aleksandar
More information about the Gdb-patches
mailing list