From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21270 invoked by alias); 11 Feb 2004 22:12:33 -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 21164 invoked from network); 11 Feb 2004 22:12:28 -0000 Received: from unknown (HELO weed.lut.ac.uk) (158.125.1.226) by sources.redhat.com with SMTP; 11 Feb 2004 22:12:28 -0000 Received: from [82.2.209.18] (helo=And.Linux) by weed.lut.ac.uk with esmtp (Exim 4.30) id 1Ar2ao-0002cR-7A; Wed, 11 Feb 2004 22:12:26 +0000 Subject: Re: Protocol Translation (Apologies for LONG email) From: Andrew Batchelor To: Bill Gatliff Cc: GDB Newsgroup In-Reply-To: <402A32C3.1000506@billgatliff.com> References: <35988.203.199.140.162.1076507136.squirrel@webmail.codito.com> <402A32C3.1000506@billgatliff.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 11 Feb 2004 22:12:00 -0000 Message-Id: <1076537572.1123.892.camel@And.Linux> Mime-Version: 1.0 X-Scan-Signature: 784e814ffcaade99d930b107fe8c5c77 X-SW-Source: 2004-02/txt/msg00116.txt.bz2 Hi Bill, Thanks for your reply... On Wed, 2004-02-11 at 13:48, Bill Gatliff wrote: > Could you make a gdbserver-like proxy utility, that would launch before > gdb and listen on a port on localhost? Gdb would then connect to that > port with RSP (or RDI or whatever), and you could translate the incoming > messages to whatever protocol you needed on the ICE end. Hmmm, good idea, I'd not thought of that. I've not really looked at the gdbserver code, so I think I'll have a dig around in the morning. It sounds like what I'm after... > Your server program could parse a configuration file, which might > contain instructions to download the application to the target before > gdb connects, or other housekeeping matters. I'm not sure I understand you here, "parse a configuration file"? > Once connected, you could use gdb's "maintenance" commands to send > out-of-band messages for the things that don't translate well between > RSP and your target protocol. Do all GDB messages go via the gdbserver? > This is not unlike how gdbserver, the BDI2000, and some versions of the > Wiggler work, and it wouldn't require modification of a single line of > gdb source code. That's a plus. I'm still flip-flopping between actually adding-IN to the GDB code or (like this) adding-ON to it. Thanks again for your help. Andrew