* Support New Target in GDB
@ 2006-09-17 13:17 Cai Qian
2006-09-17 14:52 ` Daniel Jacobowitz
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Cai Qian @ 2006-09-17 13:17 UTC (permalink / raw)
To: gdb
Hi,
I would like to add a new target to GDB, and then use the following command,
configure --target=arc-elf
However, only got message,
...
check for X... libraries, headers
configure: error: "*** GDB does not support target arc-unknonw-elf"
make[1]: *** [configure-gdb] Error 1
...
I suppose ARC has already been supported by BFD, so I have followed
instructions here
http://sources.redhat.com/gdb/current/onlinedocs/gdbint_9.html#SEC83
In addtion, I have modified gdb/Makefile.in to add rule for
arc-tdep.o. are there other things missing?
Qian
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Support New Target in GDB
2006-09-17 13:17 Support New Target in GDB Cai Qian
@ 2006-09-17 14:52 ` Daniel Jacobowitz
[not found] ` <c9d32f760609171605m7f0aadffn43d374d04cfc3102@mail.gmail.com>
2006-09-18 6:42 ` Ramana Radhakrishnan
2006-09-18 18:34 ` Michael Snyder
2 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2006-09-17 14:52 UTC (permalink / raw)
To: Cai Qian; +Cc: gdb
On Sun, Sep 17, 2006 at 02:16:55PM +0100, Cai Qian wrote:
> I suppose ARC has already been supported by BFD, so I have followed
> instructions here
> http://sources.redhat.com/gdb/current/onlinedocs/gdbint_9.html#SEC83
>
> In addtion, I have modified gdb/Makefile.in to add rule for
> arc-tdep.o. are there other things missing?
Pick some other target, and search for places it is handled. The next
that I can think of is gdb/configure.tgt.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Support New Target in GDB
[not found] ` <c9d32f760609171605m7f0aadffn43d374d04cfc3102@mail.gmail.com>
@ 2006-09-17 23:08 ` s88
0 siblings, 0 replies; 6+ messages in thread
From: s88 @ 2006-09-17 23:08 UTC (permalink / raw)
To: gdb
On 9/18/06, s88 <dave.tw@gmail.com> wrote:
>
> On 9/17/06, Daniel Jacobowitz <drow@false.org> wrote:
>
>
> > On Sun, Sep 17, 2006 at 02:16:55PM +0100, Cai Qian wrote:
> > > I suppose ARC has already been supported by BFD, so I have followed
> > > instructions here
> > > http://sources.redhat.com/gdb/current/onlinedocs/gdbint_9.html#SEC83
> > >
> > > In addtion, I have modified gdb/Makefile.in to add rule for
> > > arc-tdep.o. are there other things missing?
> >
> > Pick some other target, and search for places it is handled. The next
> > that I can think of is gdb/configure.tgt.
> >
> > --
> > Daniel Jacobowitz
> > CodeSourcery
I know the target simulator is generated by the CGEN progect
http://sourceware.org/cgen/
but the CGEN is using the scheme (LISP) been the architecture
description language...
Does anyone know there exist another sulotion to generate the target simulator?!
Dave.
--
System on Chip Design Lab.
Dept. of Computer Science and Information Engineering,
National Chung Cheng University
E-mail : s88.tw@acm.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Support New Target in GDB
2006-09-17 13:17 Support New Target in GDB Cai Qian
2006-09-17 14:52 ` Daniel Jacobowitz
@ 2006-09-18 6:42 ` Ramana Radhakrishnan
2006-09-18 18:34 ` Michael Snyder
2 siblings, 0 replies; 6+ messages in thread
From: Ramana Radhakrishnan @ 2006-09-18 6:42 UTC (permalink / raw)
To: Cai Qian; +Cc: gdb
Hi,
Which ARC do you want to run gdb for ? The ARC gdb is not supported in
the mainline sources yet . Maybe you want to look at
http://arc-linux.org for more info.
cheers
-Ramana
P.S. Sorry about the commercial for others reading this.
On Sun, 2006-09-17 at 14:16 +0100, Cai Qian wrote:
> Hi,
>
> I would like to add a new target to GDB, and then use the following command,
>
> configure --target=arc-elf
>
> However, only got message,
>
> ...
> check for X... libraries, headers
> configure: error: "*** GDB does not support target arc-unknonw-elf"
> make[1]: *** [configure-gdb] Error 1
> ...
>
> I suppose ARC has already been supported by BFD, so I have followed
> instructions here
> http://sources.redhat.com/gdb/current/onlinedocs/gdbint_9.html#SEC83
>
> In addtion, I have modified gdb/Makefile.in to add rule for
> arc-tdep.o. are there other things missing?
>
> Qian
--
Ramana Radhakrishnan
GNU Tools
Celunite Inc (www.celunite.com)
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Support New Target in GDB
2006-09-17 13:17 Support New Target in GDB Cai Qian
2006-09-17 14:52 ` Daniel Jacobowitz
2006-09-18 6:42 ` Ramana Radhakrishnan
@ 2006-09-18 18:34 ` Michael Snyder
2006-09-18 18:47 ` Daniel Jacobowitz
2 siblings, 1 reply; 6+ messages in thread
From: Michael Snyder @ 2006-09-18 18:34 UTC (permalink / raw)
To: Cai Qian, gdb
> 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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Support New Target in GDB
2006-09-18 18:34 ` Michael Snyder
@ 2006-09-18 18:47 ` Daniel Jacobowitz
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2006-09-18 18:47 UTC (permalink / raw)
To: Michael Snyder; +Cc: Cai Qian, gdb
On Mon, Sep 18, 2006 at 11:34:43AM -0700, Michael Snyder wrote:
> * add configure directory gdb/config/arc.
> Ah, wait -- I see that it's already there, but it's empty.
That would be:
2002-08-06 Andrew Cagney <cagney@redhat.com>
* configure.tgt: Make arc-*-* obsolete.
* NEWS: Mention that arc-*-* has been identifed as obsolete.
* MAINTAINERS: Make arc-elf obsolete.
* arc-tdep.c: Make file obsolete.
* config/arc/arc.mt: Ditto.
* config/arc/tm-arc.h: Ditto.
(I do not recommend anyone working with arc use the old port as a base;
it's worth redoing from scratch, since it stood still while GDB
changed).
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-09-18 18:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-17 13:17 Support New Target in GDB 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
2006-09-18 18:47 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox