oklm
Guest
|
Posted:
Wed Dec 14, 2005 5:15 pm Post subject:
How to write a GDB-STUB for AT91RM9200? |
|
|
Hello,members!
I want to add a debugging stub on AT91RM9200 target,I've looked a
some information about it,but i don't know how to write that AT91-stub.c?
Introduction is:
On the host,
GDB already understands how to use this protocol; when everything els
is set up, you can simply use the `target remote' command .
On the target,
you must link with your program a few special-purpose subroutines tha
implement the GDB remote serial protocol. The file containing thes
subroutines is called a debugging stub. On certain remote targets, you ca
use an auxiliary program gdbserver instead of linking a stub into you
program.
The debugging stub is specific to the architecture of the remot
machine; for example, use `sparc-stub.c' to debug programs on SPAR
boards.
These working remote stubs are distributed with GDB:
i386-stub.c
For Intel 386 and compatible architectures.
m68k-stub.c
For Motorola 680x0 architectures.
sh-stub.c
For Hitachi SH architectures.
sparc-stub.c
For SPARC architectures.
sparcl-stub.c
For Fujitsu SPARCLITE architectures.
However,there are not for ARM.
MY target machine is Atmel's AT91RM9200; Operating system Kernel
Linux2.4.19-rmk7; Bootloader: U-boot0.4.8
Thank you very much!
oklm803@126.com
Please! |
|