From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6880 invoked by alias); 7 Aug 2002 15:23:30 -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 6873 invoked from network); 7 Aug 2002 15:23:29 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 7 Aug 2002 15:23:29 -0000 Received: from dsl254-114-118.nyc1.dsl.speakeasy.net ([216.254.114.118] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17cSen-00058z-00; Wed, 07 Aug 2002 10:23:30 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17cSf4-0001Ia-00; Wed, 07 Aug 2002 11:23:46 -0400 Date: Wed, 07 Aug 2002 08:23:00 -0000 From: Daniel Jacobowitz To: "William A. Gatliff" Cc: Eli Zaretskii , gdb@sources.redhat.com Subject: Re: using tracepoints function with both host and target on same computer Message-ID: <20020807152346.GA4965@nevyn.them.org> Mail-Followup-To: "William A. Gatliff" , Eli Zaretskii , gdb@sources.redhat.com References: <20020806215201.GA5715@nevyn.them.org> <20020807095153.A5941@saturn.billgatliff.com> <20020807150150.GA3872@nevyn.them.org> <20020807102113.C5941@saturn.billgatliff.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020807102113.C5941@saturn.billgatliff.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00055.txt.bz2 On Wed, Aug 07, 2002 at 10:21:13AM -0500, William A. Gatliff wrote: > Daniel: > > > On Wed, Aug 07, 2002 at 11:01:50AM -0400, Daniel Jacobowitz wrote: > > You don't do them in actual realtime, but neither do you wait for all > > of GDB to process the event; you receive the breakpoint, collect > > tracepoint data, and immediately resume without touching GDB's event > > loop. It's a little slower than an in-application stub because it has > > to use ptrace to read memory/registers, but not substantially slower. > > ... except that I don't think you'd want to be doing that across a > 9600bps remote link. Or, you'd at least want to have the option not > to. I was talking about the native case. If you have a stub, you do it in the stub. You do it wherever a trap is handled; in native that's GDB itself, otherwise it's gdbserver or your target stub. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer