From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27709 invoked by alias); 12 Apr 2005 16:35:56 -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 27533 invoked from network); 12 Apr 2005 16:35:49 -0000 Received: from unknown (HELO e34.co.us.ibm.com) (32.97.110.132) by sourceware.org with SMTP; 12 Apr 2005 16:35:49 -0000 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e34.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j3CGZm5b416540 for ; Tue, 12 Apr 2005 12:35:48 -0400 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j3CGZgOL248356 for ; Tue, 12 Apr 2005 10:35:43 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j3CGZgxG019139 for ; Tue, 12 Apr 2005 10:35:42 -0600 Received: from d03nm113.boulder.ibm.com (d03nm113.boulder.ibm.com [9.17.195.139]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j3CGZgO1019136; Tue, 12 Apr 2005 10:35:42 -0600 In-Reply-To: <20050412120620.GA6951@nevyn.them.org> To: Daniel Jacobowitz Cc: Daniel THOMPSON , gdb@sources.redhat.com MIME-Version: 1.0 Subject: Re: unable to debug remotely with threads on ppc target with gdb6.1/6.3 Message-ID: From: Claudia Salzberg Date: Tue, 12 Apr 2005 16:35:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2005-04/txt/msg00070.txt.bz2 >That's not Claudia's problem; the above only applies to NPTL, and she >appears to be using LinuxThreads from the error logs. Indeed I was misusing the commands to specify files. The command 'file' cannot be used after connecting from gdb to a remoter gdbserver since the program is considered at that point to be running. Because of this I used 'add-symbol-file' which purportedly (or so I thought) allowed me to add a symbol file to an already running process. However, this command should be used when the file specified has already been dynamically loaded (perhaps when a stripped executable is being run?). Not sure how it works internally yet but the point is the 'file' command should be used to read symbols. When using gdbserver, this command should be used prior to connecting remotely to the server to avoid the 'program already running' complaint. Thanks for your help! (now I'm tempted to try using NPTL ;) ) Claudia A. Salzberg Linux Technology Center salzberg@us.ibm.com