How to fix solib path name?

Aleksandar Ristovski aristovski@qnx.com
Wed Jul 8 15:15:00 GMT 2009


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?


-- 
Aleksandar Ristovski
QNX Software Systems



More information about the Gdb-patches mailing list