From 9cf7f520c671cdb644fb987facea36ff5e597605 Mon Sep 17 00:00:00 2001 From: Geoffrey Noer Date: Fri, 8 Aug 1997 02:57:35 +0000 Subject: Thu Aug 7 19:40:52 1997 Geoffrey Noer Changes to OCD support to support wiggler box as well as target boxes: * ocd.c: change speed in init command to 0 from 80, add (temporary) logging commands to help debugging, (ocd_open): if "target ocd wiggler lpt" then use special ser-ocd.c serial interface which communicates with Wigglers.dll, otherwise do as we did before (ocd_get_packet): add OCD_LOG_FILE and OCD_SET_CONNECTION to switch of known commands of len 0 * ocd.h: add OCD_LOG_FILE * serial.c (serial_open): do serial_interface_lookup on ocd in the case of ocd * ser-ocd.c: add buffer to contain responses from sending a command to the Wigglers.dll. (ocd_readchar): return curr char from buffer and increment ptr (ocd_write): send buffer to Wigglers.dll, storing response in return buffer and initializing curr location ptr to start of buffer. --- gdb/serial.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/serial.c') diff --git a/gdb/serial.c b/gdb/serial.c index 496e308..4bbc22d 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -212,7 +212,9 @@ serial_open (name) return scb; } - if (strcmp (name, "pc") == 0) + if (strcmp (name, "ocd") == 0) + ops = serial_interface_lookup ("ocd"); + else if (strcmp (name, "pc") == 0) ops = serial_interface_lookup ("pc"); else if (strchr (name, ':')) ops = serial_interface_lookup ("tcp"); -- cgit v1.1