From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26871 invoked by alias); 30 Jun 2009 19:02:17 -0000 Received: (qmail 26782 invoked by uid 22791); 30 Jun 2009 19:02:16 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Jun 2009 19:02:10 +0000 Received: from jupiter.vmware.com (mailhost5.vmware.com [10.16.68.131]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 4CD2E52006; Tue, 30 Jun 2009 12:02:09 -0700 (PDT) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by jupiter.vmware.com (Postfix) with ESMTP id 3F04BDC428; Tue, 30 Jun 2009 12:02:09 -0700 (PDT) Message-ID: <4A4A60AE.4090709@vmware.com> Date: Tue, 30 Jun 2009 19:02:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: "jeremy.bennett@embecosm.com" CC: "gdb@sources.redhat.com" Subject: Re: Generic Proxy RSP Server References: <1246386344.2490.42.camel@thomas> In-Reply-To: <1246386344.2490.42.camel@thomas> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00330.txt.bz2 Jeremy Bennett wrote: > I recently had to port GDB to a new embedded DSP architecture before the > chip was available either in Silicon or model. All I had was the ABI > specification, a GCC compiler and a promise of a cycle accurate model in > a few weeks. > > In the absence of any target, I created a simple proxy for RSP, which > was capable of modeling blocks of memory and registers, initialized > according to the ABI specification. This allowed me to test the > architecture definition in the GDB client against the ABI before the > target was ready. > > When the target became available (as a model), I was able to quickly > write an RSP server, with some confidence that the GDB client would be > working reasonably accurately. > > I'm sure I'm not the first person to do this, but thinking it could be > useful to others, I've packaged up the code and written a user guide for > it (all GPL). It should be configurable to act as a proxy for any "bare > metal" embedded target. > > http://www.embecosm.com/download/esp7.html > > I'm very happy to donate the code to GDB if people think it would be a > useful addition. > > Feedback and comments welcome. I've had to do something similar, so I recognize the utilitity. But by the way "RSP"? Is that remote serial port, route/switch processor, or revolutionary socialist party? 1/2 ;-)