forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
11
gdb/serial.h
11
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 */
|
||||
|
||||
Reference in New Issue
Block a user