This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
GDB porting
- From: "Svein Erling Seldal" <Svein dot Seldal at edcom dot no>
- To: <gdb at sources dot redhat dot com>
- Date: Wed, 5 Dec 2001 20:08:33 +0100
- Subject: GDB porting
Hi,
I'm thinking of writing a plugin for a TI C4X development kit for gdb, that
will enable users to debug real-time code on the development kit. In one
hand I have a library, libdsk.a, which has host functions like reset, load,
single-step, break, etc. and talks directly to the hardware running this
code. In the other I have gdb. My question is how and what I must do to
tailor them together?
Binutils and gcc exists already with c4x support (which is used to build the
target code), and there's a c4x simulator for gdb (not in the mainstream gdb
dist i believe). I have gotten the impression that all I have to do is to
write a wrapper between gdb and the library, only containing the debug,
single-step, break, ..., functions. gdb will handle the source-code dumping
and match-source-line-breakpoint-to-target-address matching and so on. Is it
this simple?
I would be very happy if anyone could shed a little light on this. Pointer
to source-files/web-sites etc. will also be appreciated.
Regards,
Svein E. Seldal