Hi,

Find attached a patch (1st part) that enables openocd to talk to gdb using
pipes (stdin, stdout) rather than sockets. It has been lying around my pc
for about 6 months, thought it was about time to get it into trunk.
It is enabled using the new cmd line option --pipe or -p

currently tested on cygwin and linux - native win32 does not work as yet
(WIP 2nd part).
It has a benefit of letting gdb start/stop openocd on every session, to use:
target remote | ./openocd --pipe
instead of
target remote localhost:2000

The issue with win32 is select does not work with std descriptors - i have a
solution in that we need to use a win32 thread, this is basically how gdb
gets around this issue.

I will also update the docs before i commit this patch.

If none has any issues then i will commit.

Cheers
Spen

Attachment: gdbpipes.patch
Description: Binary data

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to