aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1994-06-27 17:16:26 +0000
committerSteve Chamberlain <sac@cygnus>1994-06-27 17:16:26 +0000
commit5567978794e02ed8ef4a7793f8950857b22e324d (patch)
tree805fb8b2494baee239adbd4dac134c37a99c1501 /gdb/serial.c
parent6a86fa489b7cb1048f9028ba674bd29da2537643 (diff)
downloadgdb-5567978794e02ed8ef4a7793f8950857b22e324d.zip
gdb-5567978794e02ed8ef4a7793f8950857b22e324d.tar.gz
gdb-5567978794e02ed8ef4a7793f8950857b22e324d.tar.bz2
* ser-e7kpc.c: New file to support the E7000 with the PC ISA
bus interface. * serial.c (serial_open): Notice device "pc". * remote-e7000.c: Fix copyright date. (expect): Compare \n and \r the same. (e7000_open): Allow pc as a serial port * sh/sh.mt: Add ser-e7kpc. * h8300/h8300hms.mt: Add ser-e7kpc. * main.c (proc_wait): Don't wait if using go32.
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index be4aa65..631f0f3 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -52,13 +52,15 @@ serial_add_interface(optable)
/* Open up a device or a network socket, depending upon the syntax of NAME. */
serial_t
-serial_open(name)
+serial_open (name)
const char *name;
{
serial_t scb;
struct serial_ops *ops;
- if (strchr (name, ':'))
+ if (strcmp (name, "pc") == 0)
+ ops = serial_interface_lookup ("pc");
+ else if (strchr (name, ':'))
ops = serial_interface_lookup ("tcp");
else
ops = serial_interface_lookup ("hardwire");