aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index 291ff3d..5efd5b7 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -28,6 +28,10 @@ static struct serial_ops *serial_ops_list = NULL;
static serial_t last_serial_opened = NULL;
+/* Pointer to list of scb's. */
+
+static serial_t scb_base;
+
static struct serial_ops *
serial_interface_lookup (name)
char *name;
@@ -137,8 +141,9 @@ serial_fdopen (fd)
}
void
-serial_close(scb)
+serial_close(scb, really_close)
serial_t scb;
+ int really_close;
{
serial_t tmp_scb;
@@ -154,7 +159,8 @@ serial_close(scb)
if (scb->refcnt > 0)
return;
- scb->ops->close (scb);
+ if (really_close)
+ scb->ops->close (scb);
if (scb->name)
free (scb->name);