From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6454 invoked by alias); 17 Oct 2003 21:38:56 -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 6445 invoked from network); 17 Oct 2003 21:38:55 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 17 Oct 2003 21:38:55 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h9HLcsM10804 for ; Fri, 17 Oct 2003 17:38:54 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h9HLcrL16439; Fri, 17 Oct 2003 17:38:53 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h9HLcqJ20487; Fri, 17 Oct 2003 14:38:53 -0700 Message-ID: <3F90616C.3060001@redhat.com> Date: Fri, 17 Oct 2003 21:38:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eli Zaretskii CC: gdb-patches@sources.redhat.com Subject: Re: RFA: Breakpoint infrastructure cleanups [0/8] References: <20031008165534.GA8718@nevyn.them.org> <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> <6654-Thu16Oct2003085007+0200-eliz@elta.co.il> <3F8EAA56.3020900@gnu.org> <7494-Thu16Oct2003175650+0200-eliz@elta.co.il> <3F8F28A2.30000@redhat.com> <7137-Fri17Oct2003084207+0200-eliz@elta.co.il> In-Reply-To: <7137-Fri17Oct2003084207+0200-eliz@elta.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00595.txt.bz2 Eli Zaretskii wrote: >>Date: Thu, 16 Oct 2003 16:24:18 -0700 >>From: Michael Snyder >> >>The difference between breakpoints and watchpoints may be small, >>but the difference between breakpoints and tracepoints is large. > > > Can you elaborate? From the user's point of view, it seems like a > tracepoint is just a fancy variation of a breakpoint, one that > performs a set of operations and then continues the inferior. Debugging using tracepoints is a totally different process than debugging with breakpoints. It's like planning and setting up a photo or video shoot, going away while someone else does the filming, then coming back and looking at the results. >>Other potential stop-points are signals (synch and asynch), >>throw and catch, syscalls, longjmp, synchronization, thread >>switch, blocking... > > > These are all traps we set at code and/or data to stop the executable, > right? So where's the big difference? Asynchronous signals aren't like traps at all. They're not associated with a source location _or_ a target location. Of course once they happen, there will be a location where they happened -- but the next time it will be somewhere else.