From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16436 invoked by alias); 30 Aug 2005 02:12:39 -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 16417 invoked by uid 22791); 30 Aug 2005 02:12:35 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 30 Aug 2005 02:12:35 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1E9vc0-00048n-WC; Mon, 29 Aug 2005 22:12:33 -0400 Date: Tue, 30 Aug 2005 02:12:00 -0000 From: Daniel Jacobowitz To: my Name Cc: gdb@sources.redhat.com Subject: Re: debugging multithreaded applications Message-ID: <20050830021232.GA15892@nevyn.them.org> Mail-Followup-To: my Name , gdb@sources.redhat.com References: <20050816152422.39274.qmail@web50102.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050816152422.39274.qmail@web50102.mail.yahoo.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-08/txt/msg00118.txt.bz2 On Tue, Aug 16, 2005 at 08:24:22AM -0700, my Name wrote: > If I enter breakpoints into work (line 18), the > program is stopped if I use gdb (version 6.3). If > using gdbserver, after starting the process I get > "Cannot find new threads: capability not available", > and later the child process is terminated with "signal > = 5", SIGTRAP > Since I did not find anything in the manual that said > whether or not gdbserver can be used with > multithreaded programs, I hope someone on this mailing > list can help. > Is it possible to debug multithreaded programs using > gdbserver and if so, how? You shouldn't need to do anything special if they're on the same system as your gdb. If you're trying to debug on another system, search for solib-absolute-prefix. You may also want to give the CVS version a try. -- Daniel Jacobowitz CodeSourcery, LLC