This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Adding a target at build?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: James Sampson <i_am_triumph at ofir dot dk>
- Cc: Andrew Cagney <ac131313 at redhat dot com>,GDB Archive <gdb at sources dot redhat dot com>
- Date: Wed, 20 Nov 2002 09:16:34 -0500
- Subject: Re: Adding a target at build?
- References: <20021120074446.7D6252903B@postfix2.ofir.com>
On Wed, Nov 20, 2002 at 08:19:25AM +0100, James Sampson wrote:
> >As far as I know, no one has implemented a TIC54x target for GDB.
> >(if it was implemented, it would be configured using something like:
> >--target=--target=tic54x).
>
> I just found a coff-tic54x.c file in the BFD library - I just made an honest
> guess, that it might be used to read C54x COFF files. Does anybody know how to
> use this? - I need to setup my target and really don't know how... Is there a
> list of targets somewhere?.
Look in gdb/MAINTAINERS or configure.tgt.
BFD, a support library, is ported to tic54x. GDB is not. You probably
want to talk to the author of the binutils port; check
binutils/MAINTAINERS. I bet he's got some plans for a GDB port.
> >> When this is setup, and the GDB's host is different from it's target, does
> it
> >> expect to debug remotely? - Obviously it can't run it on host, because the
> >> code is target specific?
> >
> >Either remotely, or with a built-in simulator.
>
> OK - Starting to make sense :-D. But how do I load the target specific file
> into the GDB? - Again I need to setup my target, but how?.
This is why Andrew recommended cris and xstormy16. They're relatively
new, clean ports. It's still a lot of work but basing it on one of
those two will be simplest.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer