Hi Joern / deadneurons.
Thanks for your replies.
Yes I have had codeblocks working with the way you have explained. However my aim was to make this a little more integrated.
For instance, automatic start/stop of OpenOCD, user selection of JTAG device connected to OpenOCD, and eventually some peripheral windows.
Just out of interest, using your method, what happens if you let the target run and you click stop within codeblocks? From my tests, it does not do anything.
Because codeblocks was designed to debug programs running on the same platform (windows / linux etc...), in windows, the way in which the target program was paused was by issuing a special windows call (windowsbreakproc) or something like that to signal to GDB to halt. But not exit.
However the only way I can do this at the moment is to telnet to OpenOCD and issue a halt instruction.
I am developing with version SVN4067.
Regards,
Martin.