From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11770 invoked by alias); 17 Jan 2003 15:30:12 -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 11737 invoked from network); 17 Jan 2003 15:30:06 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 17 Jan 2003 15:30:06 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18ZaKO-0008Fx-00; Fri, 17 Jan 2003 11:30:48 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18ZYRb-0002Wf-00; Fri, 17 Jan 2003 10:30:07 -0500 Date: Fri, 17 Jan 2003 15:30:00 -0000 From: Daniel Jacobowitz To: Frank van Eijkelenburg Cc: Gnu Debugger mailing list Subject: Re: multithreaded remote debugging Message-ID: <20030117153007.GA9693@nevyn.them.org> Mail-Followup-To: Frank van Eijkelenburg , Gnu Debugger mailing list References: <20030117151701.GA20207@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00310.txt.bz2 On Fri, Jan 17, 2003 at 04:28:17PM +0100, Frank van Eijkelenburg wrote: > > On Fri, Jan 17, 2003 at 04:09:33PM +0100, Frank van Eijkelenburg wrote: > > > libthread_db.so.1 is installed on the target. I have a copy of the > > > application on the host. Actually its the same file as the > > target uses. I > > > mount the directory with the application from the host at the > > target. Do I > > > have to tell gdb where to find some directories? > > > > Sometimes, but it doesn't seem to be the problem here. I think your > > binary has had some symbols removed, or something similar. GDB is > > looking for "__pthread_threads_events" and not finding it. > > > > Are you running GDB with the file being debugged? Does it have symbol > > information? The "in ??" is suspicious. > > > > I'm not sure what you mean, but can you make your conlusions with this log: > (gdb) list > 923 int iPoll = 0; > 924 > 925 DebugInit(RmTrace, RmPanicHandler); > 926 > 927 printf("Starting Terminal application %s\n", VERSION > VERSION_TEXT DEBUG_TEXT); > 928 > 929 WritePID(); > 930 > 931 /* Catch Ctrl-C. Stop the program when it occurs. */ > 932 signal(SIGINT, SignalHandler); > (gdb) info line 923 > Line 923 of "../src/sbiimain.c" starts at address 0x204926c and > ends at 0x2049274 . > (gdb) info symbol 0x204926c > main + 48 in section .text > (gdb) Try: nm | grep __pthread_threads_events nm | grep __pthread_threads_events -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer