From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12983 invoked by alias); 26 Mar 2003 00:35:40 -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 12976 invoked from network); 26 Mar 2003 00:35:39 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 26 Mar 2003 00:35:39 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18y0mm-0007oC-00; Tue, 25 Mar 2003 20:37:04 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18xytF-0003ox-00; Tue, 25 Mar 2003 19:35:37 -0500 Date: Wed, 26 Mar 2003 00:35:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: GDB's breakpoint internals Message-ID: <20030326003536.GA14672@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb@sources.redhat.com References: <3E80F4DF.4090809@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E80F4DF.4090809@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-03/txt/msg00350.txt.bz2 On Tue, Mar 25, 2003 at 07:31:27PM -0500, Andrew Cagney wrote: > (Put simply, the things you learn when reading a book explaining how a > debugger should work :-) > > The `How Debuggers Work' [rosenberg] book describes a breakpoint > implementation broken into two parts: > > - high level user breakpoint list > This is what the user sees. One entry corresponds to each `break XXX' > command. That high level breakpoint then maps onto 1 or more ... > > - low level physical breakpoints (or watchpoints or ...) > One entry per physical breakpoint. When a breakpoint is hit, a reverse > map back to each high-level breakpoint for the event is done, and then > that breakpoint's handler is called. > > I might be mistaken, but I don't think GDB implemented things this way. > Instead, it has a single tangled table. Yes. If someone volunteers to do something about it... -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer