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.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'gdb/serial.h') diff --git a/gdb/serial.h b/gdb/serial.h index 8f4222f..c639deb 100644 --- a/gdb/serial.h +++ b/gdb/serial.h @@ -43,8 +43,6 @@ struct _serial_t typedef struct _serial_t *serial_t; -serial_t scb_base; /* Pointer to list of scb's */ - struct serial_ops { char *name; struct serial_ops *next; @@ -161,13 +159,12 @@ serial_t serial_fdopen PARAMS ((const int fd)); /* Push out all buffers, close the device and destroy SERIAL_T. */ -void serial_close PARAMS ((serial_t)); +void serial_close PARAMS ((serial_t, int)); -#define SERIAL_CLOSE(SERIAL_T) serial_close(SERIAL_T) +#define SERIAL_CLOSE(SERIAL_T) serial_close(SERIAL_T, 1) -/* Destroy SERIAL_T without doing the rest of the stuff that SERIAL_CLOSE - does. */ +/* Push out all buffers and destroy SERIAL_T without closing the device. */ -#define SERIAL_UN_FDOPEN(SERIAL_T) (free (SERIAL_T)) +#define SERIAL_UN_FDOPEN(SERIAL_T) serial_close(SERIAL_T, 0) #endif /* SERIAL_H */ -- cgit v1.1