How to fix solib path name?
Aleksandar Ristovski
aristovski@qnx.com
Wed Jul 8 14:45:00 GMT 2009
Danny Backx wrote:
> I'm preparing a gdb patch so it works in a cross-debugging environment.
> Host I'm using is a linux pc, target is running Windows CE Embedded 6.0.
>
> The gdbserver part is getting complete, see other messages on this list.
>
> The gdb still has a quirck or two.
>
> (gdb) info sharedlibrary
>>From To Syms Read Shared Object Library
> No \network\x86\libgcc_s_sjlj-1.dll
> 0x41ee1000 0x41fb2974
> Yes /opt/x86mingw32ce/i386-mingw32ce/lib/libstdc++-6.dll
> No \Windows\coredll.dll
> (gdb)
>
> I'm guessing that it should strip the \network\x86 from the library name
> before it attempts to find it in the solib-search-path.
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).
>
> Should it ?
>
> If yes, where should the code for that be ?
>
> Thanks for the help. Once this gets fixed, I can submit that part of my
> work too.
>
> Danny
--
Aleksandar Ristovski
QNX Software Systems
More information about the Gdb-patches
mailing list