From bbcc95bdb1c2eb0c07778e1a1195743537d44224 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Thu, 20 Jul 1995 05:52:42 +0000 Subject: * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to correctly map floating point registers numbers. * dwarfread.c (locval, new_symbol): Handle variables that are optimized out. * mdebugread.c: Replace all uses of builtin_type_* with mdebug_type_*. Define and initialize mdebug_type_*. * serial.h (serial_close): Add additional argument `really_close'. (SERIAL_CLOSE): Update serial_close call accordingly. (SERIAL_UN_FDOPEN): Use serial_close to handle refcnt properly. * serial.c (serial_close): Handle `really_close'. * serial.h (scb_base): Moved to serial.c, made static. * valops.c (value_addr): Don't coerce arrays. (typecmp): Coerce arrays instead of calling value_addr if necessary. --- gdb/serial.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gdb/serial.c') 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); -- cgit v1.1