GDB support for ARM
Hello,
using U-Boot at an ARM9 board, at the moment I download a image by tftp into board's SDRAM and then start the image by 'g 0x1000000' (0x10000000 is the SDRAM base address).
Now, I wonder if it is possible to start the image under control of gdb.
As I understand it, there can run a small 'gdb-stub' on the target
which talks by serial line or by ethernet with the gdb on the development host.
In common/kgdb.c there seems to be something like this small 'gdb-stub'? Does it work for ARM? How can it be used?
Thanks in advance and sorry if this is a FAQ.
Regards
Dirk
Quoted 11 lines · Dirk Behme
using U-Boot at an ARM9 board, at the moment I download a image by tftp into board's SDRAM and then start the image by 'g
0x1000000' (0x10000000is the SDRAM base address).Now, I wonder if it is possible to start the image under control of gdb.
As I understand it, there can run a small 'gdb-stub' on the target
which talks by serial line or by ethernet with the gdb on the development host.In
common/kgdb.cthere seems to be something like this small 'gdb-stub'? Does it work for ARM? How can it be used?
The code you are quoting suggests that it is for ppc. I personally would not wast the time to try to make the serial kgdb stuff working - the BDI2000 works fine with ARM9 cpus and you can use gdb with it as well.
Robert
Signature · 5 lines
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hornemannstra?e 12, 31137 Hildesheim, Germany
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4