From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13736 invoked by alias); 2 Sep 2008 10:53:39 -0000 Received: (qmail 13728 invoked by uid 22791); 2 Sep 2008 10:53:38 -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; Tue, 02 Sep 2008 10:52:48 +0000 Received: from [91.135.5.64] by mail.idnet.net.uk (GMS 15.01.3664/NU3963.00.7ca42f0c) with ESMTP id hgpeqlba for gdb@sourceware.org; Tue, 2 Sep 2008 11:52:40 +0100 Subject: HOWTO for porting GDB published From: Jeremy Bennett Reply-To: jeremy.bennett@embecosm.com To: gdb@sourceware.org Content-Type: text/plain Date: Tue, 02 Sep 2008 10:53:00 -0000 Message-Id: <1220352763.2870.178.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-09/txt/msg00005.txt.bz2 I've just completed porting GDB 6.8 to the OpenRISC 1000 architecture. This was an exercise originally done for GDB 5.0 and 5.3, but which has since languished. I achieved this by using the GDB Internals manual, looking at ports of other architectures, and a great deal of poring over the GDB source. I realized that there is no proper guide for an engineer porting GDB for the first time. The GDB Internals manual is aimed at developers of GDB itself, not porters - it is also not yet complete. Looking at ports for other architectures helps - but which is the best one, and does it have similar features? But I got there in the end, thanks to the generous advice from contributors to this mailing list and the GDB IRC channel. To help others, I have written up what I did as a HOWTO manual for porting GDB, using the OpenRISC 1000 port for examples. It's at http://www.embecosm.com/download/ean3.html I hope this is a useful contribution. I'd welcome feedback and any suggestions for how this first issue could be improved. For those interested in the OpenRISC 1000 port itself, this is available at http://www.embecosm.com/download/esp3.html I've also included a Doxygen analysis, giving the documentation of all functions in the port and their calling and dependency graphs. I look forward to your feedback. Jeremy -- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@embecosm.com Web: www.embecosm.com