Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* debugging program on ARM target
@ 2002-08-06 14:44 Benjamin Tze-Kit Lee
  2002-08-06 15:06 ` Grant Edwards
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Tze-Kit Lee @ 2002-08-06 14:44 UTC (permalink / raw)
  To: gdb

Hi all,

I would like to debug a program on a board that's using the ARM cpu.  In
order to do that I think I would need the "rdi" option for target.  How
can I get that option to work?

I've also seen some examples in the web that I can do the remote debugging
on the ARM by using a program called arm-elf-gdb ........ but I am not
sure where I can get it.  Is that Linux based?  Or it actually runs on
Unix too?

Please give me some help on this.
Thank you very much.

Benjamin Lee


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

* Re: debugging program on ARM target
  2002-08-06 14:44 debugging program on ARM target Benjamin Tze-Kit Lee
@ 2002-08-06 15:06 ` Grant Edwards
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Edwards @ 2002-08-06 15:06 UTC (permalink / raw)
  To: Benjamin Tze-Kit Lee; +Cc: gdb

On Tue, Aug 06, 2002 at 02:44:40PM -0700, Benjamin Tze-Kit Lee wrote:

> I would like to debug a program on a board that's using the ARM
> cpu.  In order to do that I think I would need the "rdi" option
> for target.

Maybe.

You use the "rdi" target if your target talks ADP (Angel
Debugging Protocol).  If you've got an eval board with the
Angel ROM monitor, then you can probably use rdi.  You can also
use the "rdi" target if you're using a JTAG interface box that
talks ADP (e.g. EPI's Jeeni or ARM's EmbeddedICE).

> How can I get that option to work?

You issue the command

  target rdi s=/dev/ttyS0
  
Replace /dev/ttyS0 with the device name of the serial port
you've connected to the target.  If you want to use rdi, I'd
recommend getting a nice recent CVS snapshot, since the rdi
code used to suck up a lot of CPU time while busy-waiting for
ADP messages.  I've got a patch for 5.2.1 if you want.

There are other JTAG interface boxes that use other protocols,
and there are other ROM monitors that use other protocols (like
GDB's "remote" protocol).

> I've also seen some examples in the web that I can do the
> remote debugging on the ARM by using a program called
> arm-elf-gdb

That is just GDB that has been built for debugging ARM code. 

> ........ but I am not sure where I can get it.

I think the easiest thing is to build it from sources, but
that's probably just a personality flaw on my part.  Here's one
set of instructions on building ARM tools under Unix:

http://sources.redhat.com/ecos/tools/linux-arm-elf.html

Basically, when you configure gdb, just specify
"--target=arm-elf" and do the build.  You may have to build
binutils first -- I always do it that way.

I've got a source RPM for arm-elf-gdb sitting around somewhere.
If you want a copy let me know.

> Is that Linux based?  Or it actually runs on Unix too?

It's just GDB.

-- 
Grant Edwards
grante@visi.com


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

end of thread, other threads:[~2002-08-06 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-06 14:44 debugging program on ARM target Benjamin Tze-Kit Lee
2002-08-06 15:06 ` Grant Edwards

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