[PATCH 0/3] Some terminal handling TCL

Pedro Alves
2017-11-02T15:12:10Z

In context of multi-target support, I've been messing around with
GDB's tty / job control handling, the 'terminal ours/inferior'
switching, etc, and staring at gdb/inflow.c a lot. While
adjusting/extending this machinery, the fewer code paths / variants we
have to consider, the better. Hence this precursor series.

Patch #1 removes support for the legacy termio and sgtty terminal
interfaces in favor of assuming termios. I believe that no
gdb-supported system is actually using termio/sgtty today, and so I
believe that this is actually a no-op change.

Patch #2 removes really odd code that doesn't look like have any
reason to exist.

Patch #3 removes a small gdb abstraction over SIGTSTP that hasn't been
useful in decades.

Pedro Alves (3):
Assume termios is available, remove support for termio and sgtty
Don't set terminal flags twice in a row
Eliminate STOP_SIGNAL, use SIGTSTP directly

gdb/Makefile.in | 9 +-
gdb/common/gdb_termios.h | 78 -------------
gdb/common/job-control.c | 23 ++--
gdb/configure | 3 +-
gdb/configure.ac | 3 +-
gdb/event-top.c | 26 ++---
gdb/event-top.h | 10 +-
gdb/gdbserver/configure | 2 +-
gdb/gdbserver/configure.ac | 2 +-
gdb/gdbserver/remote-utils.c | 33 +-----
gdb/inflow.c | 97 ++++------------
gdb/inflow.h | 12 +-
gdb/ser-base.c | 8 --
gdb/ser-base.h | 3 -
gdb/ser-event.c | 1 -
gdb/ser-go32.c | 12 --
gdb/ser-mingw.c | 4 -
gdb/ser-pipe.c | 1 -
gdb/ser-tcp.c | 1 -
gdb/ser-unix.c | 264 +------------------------------------------
gdb/serial.c | 8 --
gdb/serial.h | 12 --
gdb/top.c | 8 +-
23 files changed, 63 insertions(+), 557 deletions(-)
delete mode 100644 gdb/common/gdb_termios.h

--
2.5.5