public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Target code for remote debugging
@ 2001-04-30 16:17 Nitin Gupta
  2001-04-30 17:33 ` Quality Quorum
  0 siblings, 1 reply; 2+ messages in thread
From: Nitin Gupta @ 2001-04-30 16:17 UTC (permalink / raw)
  To: gdb

Hi,

I am working on a port of m32r processor. I am interested in doing the
remote debugging of target board.

As now, I got m32r-stub.c, m32r-rom.c and remote.c with the original
code, so which code do I need to "port"? From a previous message in this
mailing list, I have this impression thatI either need a ROM
monitor(m32r-rom.c?) or a m32r-sub.c, at the target.

I would like to know, what is the piece of code needed that has to run
on the target machine?

I will appreciate any direction.

Thanks,
Nitin

nitin@mobilygen.com

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

* Re: Target code for remote debugging
  2001-04-30 16:17 Target code for remote debugging Nitin Gupta
@ 2001-04-30 17:33 ` Quality Quorum
  0 siblings, 0 replies; 2+ messages in thread
From: Quality Quorum @ 2001-04-30 17:33 UTC (permalink / raw)
  To: Nitin Gupta; +Cc: gdb

On Mon, 30 Apr 2001, Nitin Gupta wrote:

> Hi,
> 
> I am working on a port of m32r processor. I am interested in doing the
> remote debugging of target board.
> 
> As now, I got m32r-stub.c, m32r-rom.c and remote.c with the original
> code, so which code do I need to "port"? From a previous message in this
> mailing list, I have this impression thatI either need a ROM
> monitor(m32r-rom.c?) 

This is incorrect, m32r-rom.c is an interface to the ROM monitor and it 
is compiled into gdb. You have to have ROM monitor from somewhere 
else (e.g. write it yourself). If you do not have ROM monitor 
you can use m32r-stub.c, I would say using stub is preferable method.

> or a m32r-sub.c, at the target.

This file should be compiled as a part of the target image, once you
hooked it up onto your serial driver and exception handler you can debug
you board using 'remote' gdb-target. 

I would say, that usually in order to make it work, you have to 
understand your CPU and serial interface well enough. Good thing
is that once it is done it usually works great. 

> I would like to know, what is the piece of code needed that has to run
> on the target machine?
> 
> I will appreciate any direction.

> 
> Thanks,
> Nitin
> 
> nitin@mobilygen.com
> 

Thanks,

Aleksey


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

end of thread, other threads:[~2001-04-30 17:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-30 16:17 Target code for remote debugging Nitin Gupta
2001-04-30 17:33 ` Quality Quorum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).