diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1995-07-20 05:52:42 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1995-07-20 05:52:42 +0000 |
commit | bbcc95bdb1c2eb0c07778e1a1195743537d44224 (patch) | |
tree | ae33cc938932257cf57018e2325d19a042f3caf7 /gdb/serial.h | |
parent | b5727da67b6413c3ab01aacb4004e010d6ebf3b4 (diff) | |
download | binutils-bbcc95bdb1c2eb0c07778e1a1195743537d44224.tar.gz binutils-bbcc95bdb1c2eb0c07778e1a1195743537d44224.tar.bz2 binutils-bbcc95bdb1c2eb0c07778e1a1195743537d44224.zip |
* 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.h')
-rw-r--r-- | gdb/serial.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/serial.h b/gdb/serial.h index 8f4222f2ed8..c639deb8660 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 */ |