From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8631 invoked by alias); 23 Jun 2003 19:45:45 -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 8562 invoked from network); 23 Jun 2003 19:45:43 -0000 Received: from unknown (HELO av.mvista.com) (12.44.186.158) by sources.redhat.com with SMTP; 23 Jun 2003 19:45:43 -0000 Received: from mvista.com (av [127.0.0.1]) by av.mvista.com (8.9.3/8.9.3) with ESMTP id MAA29006; Mon, 23 Jun 2003 12:45:40 -0700 Message-ID: <3EF75754.3030202@mvista.com> Date: Mon, 23 Jun 2003 19:45:00 -0000 From: Cal Erickson Reply-To: cerickson@mvista.com Organization: MontaVista Software, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us MIME-Version: 1.0 To: nak26 CC: gdb@sources.redhat.com Subject: Re: gdbserver multithreaded debugging problem References: <3EF77554@webmail.drexel.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg00460.txt.bz2 Nik, You are missing libthread_db.* in your LIBRAY PATH. If you had these then you would not see the the SIG 32 messages. Cal Erickson nak26 wrote: > 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 > > > -- =========================================================================== Cal Erickson MontaVista Software Inc. Linux Consultant 1237 E. Arques Ave. Phone (408) 328-0304 Sunnyvale CA 94085 Fax (408) 328-9204 web http://www.mvista.com ===========================================================================