This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: pthread_db innitializing error
- From: nak26 <nak26 at drexel dot edu>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb <gdb at sources dot redhat dot com>
- Date: Thu, 26 Jun 2003 10:34:37 -0400
- Subject: RE: pthread_db innitializing error
>
>Is GDB on the host finding the _host's_ libpthread, or the _target's_
>libpthread copied to the host?
>
>It must be the latter if you want it to work.
>
It finds the latter, but errors when trying to load it automatically.
I guess the warning that comes out after the connection is made points to
why this is happening.
----------------------------------
GDB console's output
----------------------------------
(gdb) b main
Breakpoint 1 at 0x82a2cc2: file ../cp/tlpcp.cxx, line 332.
(gdb) target remote 192.168.139.14:7000
Remote debugging using 192.168.139.14:7000
0x40001390 in ?? ()
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
(gdb) c
Continuing.
Error while mapping shared library sections:
/lib/libnsl.so.1: No such file or directory.
Error while mapping shared library sections:
/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/opt/intel/mkl/lib/32/libmkl_p4.so: No such file or directory.
Error while mapping shared library sections:
/opt/intel/mkl/lib/32/libguide.so: No such file or directory.
Error while mapping shared library sections:
/usr/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/lib/libm.so.6: No such file or directory.
Error while mapping shared library sections:
/lib/libgcc_s.so.1: No such file or directory.
Error while mapping shared library sections:
/lib/libc.so.6: No such file or directory.
Error while mapping shared library sections:
/lib/ld-linux.so.2: No such file or directory.
--------------------------------------------
GDBSERVER's console output
--------------------------------------------
Process tlpSim created; pid = 2884
Remote debugging from host 192.168.66.59
gdb: Unable to set global thread event mask: generic error
gdb: Unable to set global thread event mask: generic error
gdb: Unable to set global thread event mask: generic error
gdb: Unable to set global thread event mask: generic error
gdb: Unable to set global thread event mask: generic error
gdb: Unable to set global thread event mask: generic error
gdb: Unable to set global thread event mask: generic error
gdb: Unable to set global thread event mask: generic error
Is this a (_remote_) linker issue or gdbserver issue or (_local_)
gdb issue?
Furthermore, does gdb load the shared libraries from the remote
machine over the network or they need to reside locally?
Thanks,
--Nik