How to communicate with GDB and JTAG ?

Hi,

I’m writing a full development environment for GNU C toolchain for ARM mcu. I want now to interface my IDE to JTAG interfaces and GDB to let users do debug and go step by step through source code (source level debuging). I did not found clear documentation about how to do that. I know that we can connect to GDB using socket interface but did not find anything specific to ARM debuging.

I know that Redhat has written a tool named “Insight” but it looks really ugly compared to my IDE, and I really want users do source level debuging and watch their variables from my own editor. How can I do that ?

Any documentation or links will be welcome.

PS. I’m writing my dev environment in Delphi, so I can do any socket interface or DLL call…

Best regards

octal

The simplest approach would be to use the gdbmi interface to control gdb.

To control your target you would require something like openocd.

eclipse uses gdbmi, and could give you a start.

codeblocks just parses the gdb output which is not a nice way of doing it.

There is lots of info about gdbmi in the gdb docs.

Regards

Spen

Thanks ntfreak. I’ll print today the thesis pdf of OpenOCD and I’ll try to understand how it really works.

any help would welcome.

Regards

octal

Have you looked at YAGARTO?

http://www.yagarto.de/

An examination of YAGARTO might give you some insight on how to get everything working, or you could just use YAGARTO as your IDE/toolchain.