From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5095 invoked by alias); 30 Jan 2006 20:23:26 -0000 Received: (qmail 5084 invoked by uid 22791); 30 Jan 2006 20:23:26 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 30 Jan 2006 20:23:24 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F3fYX-0004pT-Ll; Mon, 30 Jan 2006 15:23:21 -0500 Date: Tue, 31 Jan 2006 18:26:00 -0000 From: Daniel Jacobowitz To: Mitchell Fang Cc: gdb@sourceware.org Subject: Re: GDB stub questions Message-ID: <20060130202321.GA18495@nevyn.them.org> Mail-Followup-To: Mitchell Fang , gdb@sourceware.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00335.txt.bz2 On Mon, Jan 30, 2006 at 12:16:07PM -0800, Mitchell Fang wrote: > I have a question about the GDB stub. Where does the stub run? Is it > on the host machine, the target board, or the JTAG controller. This depends on your needs. A stub can typically communicate over TCP or serial from the stub; over TCP from a stand-alone JTAG unit; or over TCP on the localhost interface of the host (often talking to a simulator or a parallel/USB JTAG unit). If you are using JTAG, it will have to be the second or third of my listed options; in your case, it sounds like you want the third, a local daemon. > Is it possible to edit GDB so that it automatically uses the JTAG > controller's .dll's directly? Please do not attempt to do this. We used to add remote targets directly to GDB; now we are trying to componentize them across the barrier of the standard remote debug protocol. For one thing, you end up with tricky-to-maintain code directly in GDB; for another, the DLLs are often legally encumbered in ways that make linking them to GDB inadvisable. -- Daniel Jacobowitz CodeSourcery