From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7744 invoked by alias); 26 Jun 2003 14:44:31 -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 7736 invoked from network); 26 Jun 2003 14:44:31 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 26 Jun 2003 14:44:31 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19VY02-0002jP-00; Thu, 26 Jun 2003 09:45:22 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19VXz7-00055g-00; Thu, 26 Jun 2003 10:44:25 -0400 Date: Thu, 26 Jun 2003 14:44:00 -0000 From: Daniel Jacobowitz To: nak26 Cc: gdb Subject: Re: pthread_db innitializing error Message-ID: <20030626144425.GA19550@nevyn.them.org> Mail-Followup-To: nak26 , gdb References: <3EFAF51F@webmail.drexel.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EFAF51F@webmail.drexel.edu> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00487.txt.bz2 On Thu, Jun 26, 2003 at 10:34:37AM -0400, nak26 wrote: > > > >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? They need to reside locally, and this is a local gdb issue. >From the error message above, GDB is not finding the library - otherwise you wouldn't get "No such file or directory". Please take another look at the documentation for solib-absolute-prefix. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer