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: symbol files and source files of shared objects when debugging remote target


On Thu, Dec 21, 2006 at 02:40:23PM +0200, Avi Gozlan wrote:
> 2) When I run 'set solib-search-path path' on the host, I get the following
> warning several times on the target:
> 
> gdb: error initializing thread_db library: version mismatch between
> libthread_db and libpthread.

Then it is very likely you are pointed at the wrong libraries.

> By the way, when the program symbol file loads, I get the following message:
> Using host libthread_db library "/lib/tls/libthread_db.so.1"
> But when running "info share" I don't see libthread_db.so.1 but rather
> /lib/tls/libpthread.so.0

That's unrelated.

> 3) Why it is necessary to run 'set solib-search-path' only after the program
> enters user entry point? Running it beforehand left the so symbols unloaded.
> The implication is that the command cannot be executed during gdb
> initialization (e.g. in ini file).

Try using solib-absolute-prefix.  It probably found the wrong ld.so.

-- 
Daniel Jacobowitz
CodeSourcery


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