From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21464 invoked by alias); 14 Nov 2003 19:36:20 -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 21457 invoked from network); 14 Nov 2003 19:36:19 -0000 Received: from unknown (HELO neon-gw.transmeta.com) (63.209.4.196) by sources.redhat.com with SMTP; 14 Nov 2003 19:36:19 -0000 Received: (from root@localhost) by neon-gw.transmeta.com (8.9.3/8.9.3) id LAA10755; Fri, 14 Nov 2003 11:36:11 -0800 Received: from mailhost.transmeta.com(10.1.1.15) by neon-gw.transmeta.com via smap (V2.1) id xma010745; Fri, 14 Nov 03 11:35:45 -0800 Received: from casey.transmeta.com (casey.transmeta.com [10.10.25.22]) by deepthought.transmeta.com (8.11.6/8.11.6) with ESMTP id hAEJZmM05750; Fri, 14 Nov 2003 11:35:48 -0800 (PST) Received: (from dje@localhost) by casey.transmeta.com (8.9.3/8.7.3) id LAA16313; Fri, 14 Nov 2003 11:35:48 -0800 From: Doug Evans MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16309.11924.328913.919528@casey.transmeta.com> Date: Fri, 14 Nov 2003 19:36:00 -0000 To: Daniel Jacobowitz Cc: Rama Singh , gdb@sources.redhat.com Subject: Re: GDB interface with simulator In-Reply-To: <20031114185546.GA5030@nevyn.them.org> References: <20031114071511.26663.qmail@web8005.mail.in.yahoo.com> <16309.3013.454023.207019@casey.transmeta.com> <20031114185546.GA5030@nevyn.them.org> X-SW-Source: 2003-11/txt/msg00110.txt.bz2 Daniel Jacobowitz writes: > > 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. How about instead of adding it to every simulator, just add it as a common piece of code that gets linked in with -run and turned on when some argument is passed. OTOH, is all one would end up doing is copying a bunch of code from gdb/gdbserver to sim/common? [That's an honest question. Just trying to learn how you require it.]