Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Michael Snyder" <Michael.Snyder@palmsource.com>
To: "Cai Qian" <caiqian@gmail.com>, <gdb@sourceware.org>
Subject: RE: Support New Target in GDB
Date: Mon, 18 Sep 2006 18:34:00 -0000	[thread overview]
Message-ID: <0F4DF2E21F33DD46BE7B8CDEEB0E16D307EAC4@ussunex01.palmsource.com> (raw)
In-Reply-To: <a96350810609170616t7812be0bucaeac6ec4dd3cbbc@mail.gmail.com>


> I would like to add a new target to GDB, and then use the following command,
> 
>  configure --target=arc-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 
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.


  parent reply	other threads:[~2006-09-18 18:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-17 13:17 Cai Qian
2006-09-17 14:52 ` Daniel Jacobowitz
     [not found]   ` <c9d32f760609171605m7f0aadffn43d374d04cfc3102@mail.gmail.com>
2006-09-17 23:08     ` s88
2006-09-18  6:42 ` Ramana Radhakrishnan
2006-09-18 18:34 ` Michael Snyder [this message]
2006-09-18 18:47   ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0F4DF2E21F33DD46BE7B8CDEEB0E16D307EAC4@ussunex01.palmsource.com \
    --to=michael.snyder@palmsource.com \
    --cc=caiqian@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox