From 5567978794e02ed8ef4a7793f8950857b22e324d Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Mon, 27 Jun 1994 17:16:26 +0000 Subject: * 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. --- gdb/serial.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/serial.c') 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"); -- cgit v1.1