From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18927 invoked by alias); 16 Oct 2003 16:17:26 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18919 invoked from network); 16 Oct 2003 16:17:25 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 16 Oct 2003 16:17:25 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1AAAoX-0005PP-CU for ; Thu, 16 Oct 2003 12:17:25 -0400 Date: Thu, 16 Oct 2003 16:17:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: RFA: Breakpoint infrastructure cleanups [0/8] Message-ID: <20031016161725.GB20667@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20031008190502.GA13579@nevyn.them.org> <3F846B04.2070801@redhat.com> <3F85B4AC.7000000@redhat.com> <20031014013831.GB6118@nevyn.them.org> <3F8C18DD.3020508@redhat.com> <20031014155126.GA10669@nevyn.them.org> <3F8C605E.1060604@redhat.com> <20031015224134.GA4102@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2003-10/txt/msg00549.txt.bz2 On Thu, Oct 16, 2003 at 09:03:27AM -0700, David Carlton wrote: > On Wed, 15 Oct 2003 18:41:34 -0400, Daniel Jacobowitz said: > > On Tue, Oct 14, 2003 at 01:45:18PM -0700, Michael Snyder wrote: > > >> From that perspective, I think a breakpoint is a breakpoint. To > >> the user it represents a location in the *source* code. The fact > >> that this may translate to several locations in the machine code is > >> "under the hood", so to speak. > ... > >> So for instance, we might say that *this* is the breakpoint, and if > >> you want to know, *these* are the breakpoint's *locations*. > > > Quite happy :) This suggests struct breakpoint and struct bp_location > > (or maybe even bp_element, which is clearer for watchpoints, but less > > clear overall). > > But they're both locations - one kind of location is in the source > code, and one is in the machine code. So I would like to have the > word 'source' in the user breakpoint structure. But a user breakpoint doesn't have to be a source location - or even have one. (gdb) break *0x50003000 (gdb) break function_with_no_debug_info -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer