Assume termios is available, remove support for termio and sgtty
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 2691367ac3090d7a39cde6289776fcd7f316ed6f..ba45ff42395de0d85c9d1a71d7f1783df97d159b 100644 (file)
@@ -1,3 +1,97 @@
+2017-11-06  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (SER_HARDWIRE): Update comment.
+       (HFILES_NO_SRCDIR): Remove gdb_termios.h.
+       * common/gdb_termios.h: Delete file.
+       * common/job-control.c: Include termios.h and unistd.h instead of
+       gdb_termios.h.
+       (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
+       check.
+       (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
+       Remove sgtty code.
+       * configure.ac: No longer check for termio.h and sgtty.h.
+       * configure: Regenerate.
+       * inflow.c: Include termios.h instead of gdb_termios.h.  Replace
+       PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
+       Replace PROCESS_GROUP_TYPE references with pid_t references
+       throughout.
+       (gdb_getpgrp): Delete.
+       (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
+       (child_terminal_inferior): Remove comment.  Remove sgtty code.
+       (child_terminal_ours_1): Use tcgetpgrp directly instead of
+       gdb_getpgrp.  Use serial_set_tty_state instead aof
+       serial_noflush_set_tty_state.  Remove sgtty code.
+       * inflow.h: Include unistd.h instead of gdb_termios.h.  Replace
+       PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
+       (inferior_process_group): Now returns pid_t.
+       * ser-base.c (ser_base_noflush_set_tty_state): Delete.
+       * ser-base.h (ser_base_noflush_set_tty_state): Delete.
+       * ser-event.c (serial_event_ops): Update.
+       * ser-go32.c (dos_noflush_set_tty_state): Delete.
+       (dos_ops): Update.
+       * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
+       * ser-pipe.c (pipe_ops): Update.
+       * ser-tcp.c (tcp_ops): Update.
+       * ser-unix.c: Include termios.h instead of gdb_termios.h.  Remove
+       HAVE_TERMIOS checks.
+       [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
+       [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
+       (get_tty_state, set_tty_state): Drop termio and sgtty code, and
+       assume termios.
+       (hardwire_noflush_set_tty_state): Delete.
+       (hardwire_print_tty_state, hardwire_drain_output)
+       (hardwire_flush_output, hardwire_flush_input)
+       (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
+       (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
+       code, and assume termios.
+       (hardwire_ops): Update.
+       (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
+       * serial.c (serial_noflush_set_tty_state): Delete.
+       * serial.h (serial_noflush_set_tty_state): Delete.
+       (serial_ops::noflush_set_tty_state): Delete.
+
+2017-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * Makefile.in (SFILES): Remove doublest.c and dfp.c.
+       (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
+       (COMMON_OBS): Remove doublest.o and dfp.o.
+       Do not build target-float.c (instead of doublest.c)
+       with -Wformat-nonliteral.
+
+       * doublest.c: Remove file.
+       * doublest.h: Remove file.
+       * dfp.c: Remove file.
+       * dfp.h: Remove file.
+
+       * target-float.c: Do not include "doublest.h" and "dfp.h".
+       (DOUBLEST): Move here from doublest.h.
+       (enum float_kind): Likewise.
+       (FLOATFORMAT_CHAR_BIT): Likewise.
+       (FLOATFORMAT_LARGEST_BYTES): Likewise.
+       (floatformat_totalsize_bytes): Move here from doublest.c.  Make static.
+       (floatformat_precision): Likewise.
+       (floatformat_normalize_byteorder, get_field, put_field): Likewise.
+       (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
+       Likewise.
+       (host_float_format, host_double_format, host_long_double_format):
+       Likewise.
+       (floatformat_to_string, floatformat_from_string): Likewise.
+       (floatformat_to_doublest): Likewise.  Also, inline the original
+       convert_floatformat_to_doublest.
+       (floatformat_from_doublest): Likewise.  Also, inline the original
+       convert_floatformat_from_doublest.
+
+       Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
+       (MAX_DECIMAL_STRING): Move here from dfp.c.
+       (match_endianness): Likewise.
+       (set_decnumber_context, decimal_check_errors): Likewise.
+       (decimal_from_number, decimal_to_number): Likewise.
+       (decimal_to_string, decimal_from_string): Likewise.  Make static.
+       (decimal_from_longest, decimal_from_ulongest): Likewise.
+       (decimal_to_longest): Likewise.
+       (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
+       (decimal_convert): Likewise.
+
 2017-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * doublest.c: Do not include "gdbtypes.h".
This page took 0.026742 seconds and 4 git commands to generate.