From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13037 invoked by alias); 10 Oct 2002 16:05:35 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 13018 invoked from network); 10 Oct 2002 16:05:34 -0000 Received: from unknown (HELO av.mvista.com) (12.44.186.158) by sources.redhat.com with SMTP; 10 Oct 2002 16:05:34 -0000 Received: from mvista.com (av [127.0.0.1]) by av.mvista.com (8.9.3/8.9.3) with ESMTP id JAA28043; Thu, 10 Oct 2002 09:05:24 -0700 Message-ID: <3DA5A39F.4060600@mvista.com> Date: Thu, 10 Oct 2002 09:05:00 -0000 From: Cal Erickson Reply-To: cal_erickson@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: Keith Seitz CC: Masahide Tomita , insight@sources.redhat.com Subject: Re: Can threaded program be remotely debugged using Insight ? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-q4/txt/msg00028.txt.bz2 Current versions of gdbserver are incapable of debugging threaded programs. They do not have enough knowledge of how threads are set up and used. There are projects which are trying to remedy this. An interesting feature in the 5.2 and later versions of gdbserver is the ability to attach to a running process. However make note of the fact that I used the word process and not thread. Cal Erickson Keith Seitz wrote: > On Thu, 10 Oct 2002, Masahide Tomita wrote: > > >>Thank you for the reply. >>Anyway, how come mail from you everytime arrive twice? >> > > If you're subscribed to the mailing list, you'd get my reply via that > route as well as from me directly. > > >>I locally run gdb (not Insight) on target, to see if this is target oriented >>issue, and I get thread created and program going, but I get the message >>below now: >> >>Program received signal SIG32, Real-time event 32. >>0x4005db75 in sigsuspend( ) from /lib/libc.so.6 >> > > Ok, this is definitely a gdb or gdbserver issue, then. This subject seems > vaguely familiar: I've seen this discussed recently somewhere. I would > recommend sending a gdb session showing the error to > gdb@sources.redhat.com, where the gdb experts hang out. > > Keith > > > > -- =========================================================================== 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 ===========================================================================