From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30685 invoked by alias); 14 Nov 2003 18:55:51 -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 30677 invoked from network); 14 Nov 2003 18:55:50 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 14 Nov 2003 18:55:50 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1AKj6h-0001Jy-6p; Fri, 14 Nov 2003 13:55:47 -0500 Date: Fri, 14 Nov 2003 18:55:00 -0000 From: Daniel Jacobowitz To: Doug Evans Cc: Rama Singh , gdb@sources.redhat.com Subject: Re: GDB interface with simulator Message-ID: <20031114185546.GA5030@nevyn.them.org> Mail-Followup-To: Doug Evans , Rama Singh , gdb@sources.redhat.com References: <20031114071511.26663.qmail@web8005.mail.in.yahoo.com> <16309.3013.454023.207019@casey.transmeta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16309.3013.454023.207019@casey.transmeta.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-11/txt/msg00107.txt.bz2 On Fri, Nov 14, 2003 at 09:07:17AM -0800, Doug Evans wrote: > =?iso-8859-1?q?Rama=20Singh?= writes: > > I wish to use my simulator as an > > independent process running on the same machine or on > > other machine. > > Old versions of gdb had a file in gdb/gdbserver called low-sim.c. > IIRC, one would use this file in gdbserver and would link gdbserver > with libsim.a. You would then run this program on the host > you want to run your simulator on and use "target remote :" > in gdb to talk to gdbserver+sim. > > Maybe you could grab that file from an old version of gdb (e.g. 5.3) > and try to make it work with the version of gdb you have. > [or maybe even just build gdbserver from 5.3 sources] > > I don't recall why support for gdbserver+sim has been removed. > Maybe I'm mistaken and it's still there and I just can't see it. Because there was no point. The current simulators link directly into GDB, and the simulator interface has changed since anyone tried to use gdbserver that way. The correct thing is to write a layer in your simulator that serves the same purpose (speaks the remote protocol). It's not too hard. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer