From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26960 invoked by alias); 23 Jun 2003 19:39:10 -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 26951 invoked from network); 23 Jun 2003 19:39:09 -0000 Received: from unknown (HELO mail.drexel.edu) (144.118.25.40) by sources.redhat.com with SMTP; 23 Jun 2003 19:39:09 -0000 Received: from webmail.drexel.edu (webmail.drexel.edu [144.118.25.20]) by mail.drexel.edu (Sun Internet Mail Server sims.4.0.2001.07.26.11.50.p9) with ESMTP id <0HGY00C5J996H4@mail.drexel.edu> for gdb@sources.redhat.com; Mon, 23 Jun 2003 15:39:06 -0400 (EDT) Date: Mon, 23 Jun 2003 19:39:00 -0000 From: nak26 Subject: gdbserver multithreaded debugging problem To: gdb@sources.redhat.com Message-id: <3EF77554@webmail.drexel.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-WebMail-UserID: nak26 X-EXP32-SerialNo: 00003005 X-SW-Source: 2003-06/txt/msg00459.txt.bz2 Hi: I am trying to use gdbserver to remotely debug a multithreaded application. Remote host is a IA32, running MontaVista Linux 3.0 kernel v 2.4.18; gdbserver from the 5.3 release tarball, patched with the PREPARE_TO_PROCEED patch, and built on the remote host. Local host is an IA32 machine, running RedHat 8.0, gdb v 5.2.1-4. I get a "Real-time event 32"-signal as each thread is spun up, execution stops, and I have to re-continue. After all the threads are created and I hit a breakpoint, info thread only displays the main thread. I don't see this problem while debugging with gdb (5.2.1) on the remote (and the local) target . Is there anything I can do to solve the problem I am experiencing with gdbserver? Here's gdb's output when debugging remotely: -------------------------------------------- (gdb) target remote 192.168.139.14:8888 Remote debugging using 192.168.139.14:8888 0x40001390 in ?? () (gdb) b osevent.cxx:215 Breakpoint 1 at 0x826dd03: file ../../common/osevent.cxx, line 215. (gdb) cont Continuing. Program received signal SIG32, Real-time event 32. 0x404b724d in ?? () (gdb) c Continuing. Program received signal SIG32, Real-time event 32. 0x404b724d in ?? () (gdb) Continuing. Program received signal SIG32, Real-time event 32. 0x404b724d in ?? () (gdb) Continuing. Program received signal SIG32, Real-time event 32. 0x404b724d in ?? () (gdb) Continuing. Program received signal SIG32, Real-time event 32. 0x404b724d in ?? () (gdb) Continuing. Program received signal SIG32, Real-time event 32. 0x404b724d in ?? () (gdb) Continuing. Program received signal SIG32, Real-time event 32. 0x404b724d in ?? () (gdb) Continuing. Breakpoint 1, OsEventManagerClass::eventLoop() (this=0x89caf78) at ../../common/osevent.cxx:215 215 if (pTimer) { (gdb) info thread 1 Thread 3860 OsEventManagerClass::eventLoop() (this=0x89caf78) at ../../common/osevent.cxx:215 ---------------------------------------------- Thanks, --Nik