From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14412 invoked by alias); 7 Mar 2007 20:18:39 -0000 Received: (qmail 14404 invoked by uid 22791); 7 Mar 2007 20:18:38 -0000 X-Spam-Check-By: sourceware.org Received: from xmrc0101.northgrum.com (HELO xmrc0101.northgrum.com) (208.12.122.34) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 07 Mar 2007 20:18:27 +0000 Received: from xbhc0001.northgrum.com ([157.127.103.103]) by xmrc0101.northgrum.com with InterScan Message Security Suite; Wed, 07 Mar 2007 12:25:29 -0800 Received: from xbhca101.northgrum.com ([157.127.103.51]) by xbhc0001.northgrum.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.2499); Wed, 7 Mar 2007 12:18:24 -0800 Received: from xcgca206.northgrum.com ([157.127.218.103]) by xbhca101.northgrum.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.2499); Wed, 7 Mar 2007 12:18:23 -0800 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Remote Debugging of a multithreaded application question Date: Wed, 07 Mar 2007 20:18:00 -0000 Message-ID: From: "Jaffer, Bobby" To: 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/msg00118.txt.bz2 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 =3D 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. Thanks, Bobby