diff options
author | Geoffrey Noer <noer@cygnus> | 1997-08-08 02:57:35 +0000 |
---|---|---|
committer | Geoffrey Noer <noer@cygnus> | 1997-08-08 02:57:35 +0000 |
commit | 9cf7f520c671cdb644fb987facea36ff5e597605 (patch) | |
tree | 4aaec4ac63998804ae2483d5915b94153ea468eb /gdb/serial.c | |
parent | 1154b47ab13c0cee1c409f81fa5f0dd4186a0050 (diff) | |
download | gdb-9cf7f520c671cdb644fb987facea36ff5e597605.zip gdb-9cf7f520c671cdb644fb987facea36ff5e597605.tar.gz gdb-9cf7f520c671cdb644fb987facea36ff5e597605.tar.bz2 |
Thu Aug 7 19:40:52 1997 Geoffrey Noer <noer@cygnus.com>
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.
Diffstat (limited to 'gdb/serial.c')
-rw-r--r-- | gdb/serial.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |