shared library symbols not loaded automatically
Kunal Parmar
kunal.parmar@codito.com
Fri Jul 21 16:14:00 GMT 2006
Hi Daniel,
I am not clear how setting solib-absolute-prefix will solve this problem.
The manual says that it is used as a prefix for searching the libraries
at runtime.
When I use the command sharedlibrary at the gdb prompt, the libraries
are correctly loaded.
Doesn't this mean that I do not need to set the solib-absolute-prefix??
Daniel Jacobowitz wrote:
> On Wed, Jul 12, 2006 at 11:37:25PM +0530, Kunal Parmar wrote:
>
>> Hello,
>> I am trying to debug a program which uses shared libraries.
>> My host is i386-linux and target is arm-linux.
>> While debugging, gdb shows me the shared libraries used by my program
>> but it does not load the symbols automatically (auto-solib-add is set).
>> I have to explicitly use the sharedlibrary command after which the shared
>> library symbols are read in.
>>
>
> It looks like you need to set solib-absolute-prefix.
>
>
>>> Reading symbols from /lib/libc.so.6...done.
>>> Loaded symbols for /lib/libc.so.6
>>>
>
> This is probably loading your system's /lib/libc.so.6.
>
>
--
Kunal Parmar
Software Developer,
Codito Technologies Pvt. Ltd. (www.codito.com)
Office: +91 20 26051367 ext. 133
Mobile: +91 98230 28171
More information about the Gdb
mailing list