From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32227 invoked by alias); 30 Jun 2009 18:26:03 -0000 Received: (qmail 32216 invoked by uid 22791); 30 Jun 2009 18:26:02 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_50 X-Spam-Check-By: sourceware.org Received: from smtp.idnet.com (HELO smtp-out.idnet.com) (212.69.36.238) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Jun 2009 18:25:54 +0000 Received: from localhost (unknown [127.0.0.1]) by smtp-out.idnet.com (Postfix) with ESMTP id 3822916F8C2 for ; Tue, 30 Jun 2009 18:25:51 +0000 (UTC) Received: from smtp-out.idnet.com ([127.0.0.1]) by localhost (smtp-out.idnet.com [127.0.0.1]) (amavisd-new, port 10040) with LMTP id erAGAawEFVI4 for ; Tue, 30 Jun 2009 19:25:50 +0100 (BST) Received: from mail.idnet.net.uk (mail.idnet.net.uk [212.69.36.63]) by smtp-out.idnet.com (Postfix) with ESMTP id A0AC816F8AF for ; Tue, 30 Jun 2009 19:25:50 +0100 (BST) Received: from [91.135.5.64] by mail.idnet.net.uk (GMS 15.02.3689/NU3963.00.7ca42f0c) with ESMTP id vzadfvba for gdb@sources.redhat.com; Tue, 30 Jun 2009 19:25:46 +0100 Subject: Generic Proxy RSP Server From: Jeremy Bennett Reply-To: jeremy.bennett@embecosm.com To: gdb@sources.redhat.com Content-Type: text/plain Date: Tue, 30 Jun 2009 18:26:00 -0000 Message-Id: <1246386344.2490.42.camel@thomas> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-AuthenticatedSender: jeremy.bennett.embecosm.com@idnet.net.uk 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/msg00329.txt.bz2 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. Jeremy -- Tel: +44 (1590) 610184 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@embecosm.com Web: www.embecosm.com