diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-02-24 03:59:50 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-02-24 03:59:50 +0000 |
commit | 7ccb530c93f764536739c279a5063b9cfa08ffae (patch) | |
tree | 631bc2fac91ba12938de3688aa28edf3d0401ac0 /gdb/ocd.c | |
parent | 9e89e4cdfeae7c41798174f75abd00f67aa7ae2d (diff) | |
download | gdb-7ccb530c93f764536739c279a5063b9cfa08ffae.tar.gz |
* ocd.c (ocd_open): Do not try to open the "ocd" device.
* serial.c (serial_open): Delete check for "ocd".
Fix PR gdb/349.
Diffstat (limited to 'gdb/ocd.c')
-rw-r--r-- | gdb/ocd.c | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/gdb/ocd.c b/gdb/ocd.c index 3364a912e76..6834eea648f 100644 --- a/gdb/ocd.c +++ b/gdb/ocd.c @@ -291,29 +291,9 @@ device the OCD device is attached to (e.g. /dev/ttya)."); unpush_target (current_ops); - if (strncmp (name, "wiggler", 7) == 0) - { - ocd_desc = serial_open ("ocd"); - if (!ocd_desc) - perror_with_name (name); - - buf[0] = OCD_LOG_FILE; - buf[1] = 1; /* open new or overwrite existing WIGGLERS.LOG */ - ocd_put_packet (buf, 2); - p = ocd_get_packet (buf[0], &pktlen, remote_timeout); - - buf[0] = OCD_SET_CONNECTION; - buf[1] = 0x01; /* atoi (name[11]); */ - ocd_put_packet (buf, 2); - p = ocd_get_packet (buf[0], &pktlen, remote_timeout); - } - else - /* not using Wigglers.dll */ - { - ocd_desc = serial_open (name); - if (!ocd_desc) - perror_with_name (name); - } + ocd_desc = serial_open (name); + if (!ocd_desc) + perror_with_name (name); if (baud_rate != -1) { |