aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-07-20 05:52:42 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-07-20 05:52:42 +0000
commitbbcc95bdb1c2eb0c07778e1a1195743537d44224 (patch)
treeae33cc938932257cf57018e2325d19a042f3caf7 /gdb/serial.c
parentb5727da67b6413c3ab01aacb4004e010d6ebf3b4 (diff)
downloadgdb-bbcc95bdb1c2eb0c07778e1a1195743537d44224.zip
gdb-bbcc95bdb1c2eb0c07778e1a1195743537d44224.tar.gz
gdb-bbcc95bdb1c2eb0c07778e1a1195743537d44224.tar.bz2
* 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.
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);