From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18602 invoked by alias); 7 Mar 2007 20:26:01 -0000 Received: (qmail 18593 invoked by uid 22791); 7 Mar 2007 20:26:00 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 07 Mar 2007 20:25:54 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HP2hr-0007GW-MZ; Wed, 07 Mar 2007 15:25:51 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HP2hr-0004nQ-AA; Wed, 07 Mar 2007 15:25:51 -0500 Date: Wed, 07 Mar 2007 20:26:00 -0000 From: Daniel Jacobowitz To: "Jaffer, Bobby" Cc: gdb@sourceware.org Subject: Re: Remote Debugging of a multithreaded application question Message-ID: <20070307202551.GA18422@caradoc.them.org> Mail-Followup-To: "Jaffer, Bobby" , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00119.txt.bz2 On Wed, Mar 07, 2007 at 12:18:23PM -0800, Jaffer, Bobby wrote: > > Question: > > I am trying to debug a multithreaded application on a remote linux > machine from a cygwin environment. I start the gdbserver on the remote > linux machine. I then run gdb on cygwin and attach to the gdbserver. I > then can set a break point anywhere in the source code. But, if I set a > break point in a function that executes outside the main thread, gdb > will not stop at the break point when gdb runs the executable. And an > error message shows on the gdbserver side. Specifically, it says "Child > terminated with signal = 5". The gdbserver then quits at this point. > Why can't gdb debug the other threads in the application? > > My setup: Remote machine is running open suse 10.2 linux. Windows > machine is running cygwin. Please see the latest GDB manual, which has a section describing this. It sounds like either you do not have solib-absolute-prefix set, or you do not have the same libraries available in both systems. -- Daniel Jacobowitz CodeSourcery