From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26920 invoked by alias); 18 Sep 2006 18:34:55 -0000 Received: (qmail 26910 invoked by uid 22791); 18 Sep 2006 18:34:54 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.palmsource.com (HELO mx2.palmsource.com) (12.7.175.14) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 18 Sep 2006 18:34:47 +0000 Received: from localhost (localhost [127.0.0.1]) by localhost.domain.tld (Postfix) with ESMTP id 77FED260C8; Mon, 18 Sep 2006 11:34:45 -0700 (PDT) Received: from mx2.palmsource.com ([127.0.0.1]) by localhost (mx2.palmsource.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30376-01-10; Mon, 18 Sep 2006 11:34:44 -0700 (PDT) Received: from ussunex01.palmsource.com (unknown [192.168.101.9]) by mx2.palmsource.com (Postfix) with ESMTP id 893F625F94; Mon, 18 Sep 2006 11:34:44 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Support New Target in GDB Date: Mon, 18 Sep 2006 18:34:00 -0000 Message-ID: <0F4DF2E21F33DD46BE7B8CDEEB0E16D307EAC4@ussunex01.palmsource.com> References: From: "Michael Snyder" To: "Cai Qian" , X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00093.txt.bz2 > I would like to add a new target to GDB, and then use the following comma= nd, >=20 > configure --target=3Darc-elf Some of the steps you will need to do: * add entries to gdb/configure.tgt for your arc-elf target. * implement a source module gdb/arc-tdep.c * add rule for arc-tdep.o to Makefile.in * add configure directory gdb/config/arc. Ah, wait -- I see that it's already there, but it's empty. * In the configure directory, you may add bits such as a target makefile fragment (eg. "arc.mt"), which will be added to the Makefile at configure time When I need to add a new target, I usually pick an existing target=20 to look toward as an example. Of course it helps to pick an example that is similar to your target. If your target is native linux, for instance, you might pick sparc64-*-linux to investigate / emulate. OTOH, if you're doing a simple embedded target, or maybe a bare-bones simulator, you might pick eg. the d10v or m32r.