From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7050 invoked by alias); 3 Feb 2009 03:05:58 -0000 Received: (qmail 7042 invoked by uid 22791); 3 Feb 2009 03:05:58 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Feb 2009 03:05:52 +0000 Received: by ti-out-0910.google.com with SMTP id d10so1005920tib.12 for ; Mon, 02 Feb 2009 19:05:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.110.95.3 with SMTP id s3mr5369208tib.35.1233630350092; Mon, 02 Feb 2009 19:05:50 -0800 (PST) In-Reply-To: <735532.80747.qm@web36208.mail.mud.yahoo.com> References: <735532.80747.qm@web36208.mail.mud.yahoo.com> Date: Tue, 03 Feb 2009 03:05:00 -0000 Message-ID: Subject: Re: gdb internal error SIGINT/SIGSTOP From: teawater To: paawan1982@yahoo.com Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2009-02/txt/msg00025.txt.bz2 Why not check if this process is stop or not before send sig to them (use wait or something)? On Mon, Feb 2, 2009 at 22:47, paawan oza wrote: > > Hello, > > I have been modifying gdb for past couple of months. > I am trying to keep process always running and user should be able to type commands. > It is similar to tracepoints but on host system. > > I am facing a problem as following when try to debug multi-threaded applications. > > I am sending SIGINT/SIGSTOP (with no pass) to stop the process. > linux-nat-wait wll attempt to stop other threads and it succeeds. > and it works fine. > > but, > when I have breakpoints on threads.... > and if main/CLONEs thread is stopped due to breakpoint and if I send > SIGINT/SIGSTOP to the main thread.... > eventually I end up getting interrnal gdb assertion error. > gdb_assert (pid == GET_LWP (lp->ptid)); > > I would like to know !! > > 1) why is that happening ? > in the scenerio where (thread is already stopped because of breakpoint > and I am internally sending SIGINT/SIGSTOP (with no pass) > > note : I have modified gdb code to suite my requirements. where process should always be running and user should be able to type commands > > please do the needful. > > > Regards, > ..Paawan. > > > > > > > > > > > > > > > > > > > > > >