This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: port gdb to embedded processor:about RSP
- From: "Miki Tebeka" <mikit at zoran dot co dot il>
- To: <gnufans at sina dot com>, <gdb at sources dot redhat dot com>
- Date: Mon, 6 Oct 2003 00:02:06 +0200
- Subject: RE: port gdb to embedded processor:about RSP
Hello,
> My current plan is to port gdb to a 8-bit embedded
>processor with a new,instead of directly communicating with the
>processor,our gdb will communicate with an emulator.Now suppose
>the BFD has been successfully ported,I am still wondering about
>what in detail I need to do with the remote debugging part.In some
>documents,I have seen some ones
>say it is a must to implement the GDB RSP(remote serial
>protocol),so how in detail I can do to implement it,which files of
>what functionality I must create or modify? Waiting for help! Thanks!
We do the same here and use a "proxy" GDBInterface which can communicate
with the
simulator (via pipes) or with the hardware (via COM port).
It's just like porting to a new arch, only the "child_create_inferior"
function either
launches the simulator or opens a connection to the hardware.
(Note that we're using a old gdb, things might be different in newer
versions)
HTH.
Bye.
----------------------------------------------------------------------------
-
Smile, damn it, smile.
lambda msg: {
'name' : 'Miki Tebeka',
'email' : 'mikit@zoran.co.il',
'url' : ' http://www.cs.bgu.ac.il/~tebeka',
'quote' : 'The only difference between children and adults is the
price of the toys'
}[msg]