From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10195 invoked by alias); 2 Feb 2009 14:47:10 -0000 Received: (qmail 10178 invoked by uid 22791); 2 Feb 2009 14:47:09 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web36208.mail.mud.yahoo.com (HELO web36208.mail.mud.yahoo.com) (209.191.68.234) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 02 Feb 2009 14:47:04 +0000 Received: (qmail 82145 invoked by uid 60001); 2 Feb 2009 14:47:02 -0000 Received: from [123.238.99.146] by web36208.mail.mud.yahoo.com via HTTP; Mon, 02 Feb 2009 06:47:02 PST Date: Mon, 02 Feb 2009 14:47:00 -0000 From: paawan oza Reply-To: paawan1982@yahoo.com Subject: gdb internal error SIGINT/SIGSTOP To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <735532.80747.qm@web36208.mail.mud.yahoo.com> 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/msg00014.txt.bz2 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.