Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* RE: Adding a target at build?
@ 2002-11-19 23:19 James Sampson
  2002-11-20  6:17 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: James Sampson @ 2002-11-19 23:19 UTC (permalink / raw)
  To: Andrew Cagney, GDB Archive

>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?.


>> 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?.

>> Am I way off here?.
>
>nope :-)

Cool ;-). Still feel a bit lost though...

/JS



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Adding a target at build?
  2002-11-19 23:19 Adding a target at build? James Sampson
@ 2002-11-20  6:17 ` Daniel Jacobowitz
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2002-11-20  6:17 UTC (permalink / raw)
  To: James Sampson; +Cc: Andrew Cagney, GDB Archive

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Adding a target at build?
@ 2002-11-20 11:12 James Sampson
  0 siblings, 0 replies; 8+ messages in thread
From: James Sampson @ 2002-11-20 11:12 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: GDB Archive

>I think at least xstormy16 is a remote-only target already.  This is
>not a couple-of-hours job.

With the amount of experience I have, this is not even a couple-of-days job 
:-(



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Adding a target at build?
  2002-11-20  7:38 James Sampson
@ 2002-11-20  7:42 ` Daniel Jacobowitz
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2002-11-20  7:42 UTC (permalink / raw)
  To: James Sampson; +Cc: GDB Archive

On Wed, Nov 20, 2002 at 03:44:14PM +0100, James Sampson wrote:
> >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.
> 
> Oh God! - I had no idea there was so much work in this :-(.
> 
> Well - The GDB doesn't have to run on this target, it just needs to remote 
> debug it - Doesn't this simplify it a bit?

I think at least xstormy16 is a remote-only target already.  This is
not a couple-of-hours job.


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Adding a target at build?
@ 2002-11-20  7:38 James Sampson
  2002-11-20  7:42 ` Daniel Jacobowitz
  0 siblings, 1 reply; 8+ messages in thread
From: James Sampson @ 2002-11-20  7:38 UTC (permalink / raw)
  To: GDB Archive; +Cc: drow

>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.

Oh God! - I had no idea there was so much work in this :-(.

Well - The GDB doesn't have to run on this target, it just needs to remote 
debug it - Doesn't this simplify it a bit?


>> 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.

But still - A search on "cris" in the GDB source codes reveils 300 Kb of 
source code, and I'm just trying to load some code into the GDB, which it must 
send to my target...

Still feel like I'm missing something :-)

Best Regards
J.S.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: Adding a target at build?
@ 2002-11-20  3:47 James Sampson
  0 siblings, 0 replies; 8+ messages in thread
From: James Sampson @ 2002-11-20  3:47 UTC (permalink / raw)
  To: ac131313; +Cc: GDB Archive

It's me again :-D

Andrew Wrote:
>If you're interested in adding tic54x support to GDB, then have a look
>at the xstormy16 and cris targets.

How come it's good to look at these targets?.

I searched the GDB source code for "cris" and found 10 files, but I don't know 
what to do.

Best Regards
J.S.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Adding a target at build?
  2002-11-19  6:47 James Sampson
@ 2002-11-19  9:10 ` Andrew Cagney
  0 siblings, 0 replies; 8+ messages in thread
From: Andrew Cagney @ 2002-11-19  9:10 UTC (permalink / raw)
  To: James Sampson; +Cc: GDB Archive

> Hello Gurus :-)
> 
> Is this understood correctly? :
> 
> When I build the GDB I need to specify a target and a host. The host being the 
> PC I use to run the GDB and the target being the target I wish to debug 
> remotely?.
> 
> If it is :
> 
> Suppose I wish to use a TIC54x target which is supported by the GDB (Me think) 
> - What do I need to do to make this my target at build time?.

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).

If you're interested in adding tic54x support to GDB, then have a look 
at the xstormy16 and cris targets.  (You'll also want to arrange an FSF 
copyright assignment so that your work can be included in the official GDB).

> 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.

> Am I way off here?.

nope :-)

Andrew



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Adding a target at build?
@ 2002-11-19  6:47 James Sampson
  2002-11-19  9:10 ` Andrew Cagney
  0 siblings, 1 reply; 8+ messages in thread
From: James Sampson @ 2002-11-19  6:47 UTC (permalink / raw)
  To: GDB Archive

Hello Gurus :-)

Is this understood correctly? :

When I build the GDB I need to specify a target and a host. The host being the 
PC I use to run the GDB and the target being the target I wish to debug 
remotely?.

If it is :

Suppose I wish to use a TIC54x target which is supported by the GDB (Me think) 
- What do I need to do to make this my target at build time?.

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?


Am I way off here?.

Please Help!

Best Regards
James Sampson



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-11-20 19:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-19 23:19 Adding a target at build? James Sampson
2002-11-20  6:17 ` Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2002-11-20 11:12 James Sampson
2002-11-20  7:38 James Sampson
2002-11-20  7:42 ` Daniel Jacobowitz
2002-11-20  3:47 James Sampson
2002-11-19  6:47 James Sampson
2002-11-19  9:10 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox