From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3787 invoked by alias); 21 Mar 2007 11:14:26 -0000 Received: (qmail 3776 invoked by uid 22791); 21 Mar 2007 11:14:25 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 21 Mar 2007 11:14:23 +0000 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 5A1664B267; Wed, 21 Mar 2007 06:14:22 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 33F5F4B262; Wed, 21 Mar 2007 06:14:22 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HTylp-0007Ew-NK; Wed, 21 Mar 2007 07:14:21 -0400 Date: Wed, 21 Mar 2007 11:14:00 -0000 From: Daniel Jacobowitz To: Michael FIG Cc: gdb@sourceware.org Subject: Re: debugging a program that uses SIGTRAP Message-ID: <20070321111421.GB27561@caradoc.them.org> Mail-Followup-To: Michael FIG , gdb@sourceware.org References: <7qy7lruz89.fsf@babe.fig.org> <20070321021809.GA2523@caradoc.them.org> <7qtzwfuxxk.fsf@babe.fig.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7qtzwfuxxk.fsf@babe.fig.org> User-Agent: Mutt/1.5.14+cvs20070313 (2007-03-13) 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: 2007-03/txt/msg00248.txt.bz2 On Tue, Mar 20, 2007 at 08:34:31PM -0600, Michael FIG wrote: > > I don't see any good way to solve this. You've got two sets of > > breakpoints and they're both going to stop GDB - it doesn't know which > > ones you want and which you don't. > > Okay. I thought somehow GDB would pass SIGTRAP iff it knows it has > not set a breakpoint on the current instruction pointer by scanning > its list of breakpoints. You've asked it to pass all SIGTRAPs and it's doing what you said - I think you're stuck. However, it might be possible to make it do this. The logic is in infrun.c. Be careful; that's one of the touchiest pieces of GDB. -- Daniel Jacobowitz CodeSourcery