From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7442 invoked by alias); 7 Aug 2002 15:24:55 -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 7435 invoked from network); 7 Aug 2002 15:24:54 -0000 Received: from unknown (HELO saturn.billgatliff.com) (209.251.101.200) by sources.redhat.com with SMTP; 7 Aug 2002 15:24:54 -0000 Received: by saturn.billgatliff.com (Postfix, from userid 500) id 36B7F4E0004; Wed, 7 Aug 2002 10:24:54 -0500 (CDT) Date: Wed, 07 Aug 2002 08:24:00 -0000 From: "William A. Gatliff" To: gdb@sources.redhat.com Subject: Re: using tracepoints function with both host and target on same computer Message-ID: <20020807102454.E5941@saturn.billgatliff.com> Reply-To: bgat@billgatliff.com References: <20020806215201.GA5715@nevyn.them.org> <20020807095153.A5941@saturn.billgatliff.com> <20020807150150.GA3872@nevyn.them.org> <20020807102113.C5941@saturn.billgatliff.com> <20020807152346.GA4965@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020807152346.GA4965@nevyn.them.org>; from drow@mvista.com on Wed, Aug 07, 2002 at 11:23:46AM -0400 X-SW-Source: 2002-08/txt/msg00056.txt.bz2 Daniel: Er, I guess you were clear on that, weren't you? My bad. b.g. On Wed, Aug 07, 2002 at 11:23:46AM -0400, Daniel Jacobowitz wrote: > 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 -- Bill Gatliff bgat@billgatliff.com