From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9926 invoked by alias); 13 Nov 2008 18:14:22 -0000 Received: (qmail 9863 invoked by uid 22791); 13 Nov 2008 18:14:21 -0000 X-Spam-Check-By: sourceware.org Received: from mail.idnet.net.uk (HELO mail.idnet.net.uk) (212.69.36.63) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 13 Nov 2008 18:13:28 +0000 Received: from [91.135.5.64] by mail.idnet.net.uk (GMS 15.01.3664/NU3963.00.7ca42f0c) with ESMTP id grpinnba for gdb@sourceware.org; Thu, 13 Nov 2008 18:13:21 +0000 Subject: HOWTO for writing an RSP server From: Jeremy Bennett Reply-To: jeremy.bennett@embecosm.com To: gdb@sourceware.org Content-Type: text/plain Date: Thu, 13 Nov 2008 18:14:00 -0000 Message-Id: <1226600001.2943.149.camel@thomas> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) 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: 2008-11/txt/msg00105.txt.bz2 I've just completed writing a RSP server for the OpenRISC 1000 architecture. I drew on the information in the GDB User Guide, but discovered that the stubs supplied with the distribution and their instructions are several years out of date. However by working through the GDB source code and with assistance from contributors on the GDB IRC channel, I was successful. I've written up my experience as a HOWTO for implementing an RSP server. I hope it will complement the existing documentation. In particular I've tried to capture how various GDB commands map into a sequence of RSP packet exchanges. I've used examples from the OpenRISC 1000 as illustration. It's at: http://www.embecosm.com/download/ean4.html I hope this is a useful contribution. I'd welcome feedback and any suggestions for how this document could be improved. Jeremy -- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@embecosm.com Web: www.embecosm.com