From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4391 invoked by alias); 26 Jun 2003 14:34:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4384 invoked from network); 26 Jun 2003 14:34:41 -0000 Received: from unknown (HELO mail.drexel.edu) (144.118.25.40) by sources.redhat.com with SMTP; 26 Jun 2003 14:34:41 -0000 Received: from webmail.drexel.edu (webmail.drexel.edu [144.118.25.20]) by mail.drexel.edu (Sun Internet Mail Server sims.4.0.2001.07.26.11.50.p9) with ESMTP id <0HH300CBQF5PYR@mail.drexel.edu> for gdb@sources.redhat.com; Thu, 26 Jun 2003 10:34:37 -0400 (EDT) Date: Thu, 26 Jun 2003 14:34:00 -0000 From: nak26 Subject: RE: pthread_db innitializing error To: Daniel Jacobowitz Cc: gdb Message-id: <3EFAF51F@webmail.drexel.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-WebMail-UserID: nak26 X-EXP32-SerialNo: 00003005 X-SW-Source: 2003-06/txt/msg00485.txt.bz2 > >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