summaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2017-04-11 21:05:12 -0400
committerSergio Durigan Junior <sergiodj@redhat.com>2017-04-12 17:59:45 -0400
commitbe628ab814f1c90e185d7482d27aa8a991ab5837 (patch)
tree6a15d8e6ed4f8558c80cd6897eb28db60ab89dd0 /gdb/inflow.c
parent8e9e35b1808481735e2d1efbf70ed7396a845d8e (diff)
downloadbinutils-gdb-be628ab814f1c90e185d7482d27aa8a991ab5837.tar.gz
Create gdb_termios.h (and cleanup gdb/{,gdbserver/}terminal.h)
As requested, I'm sending this as a separate patch because it is ready to be included as-is. The idea here is that both gdb/terminal.h and gdb/gdbserver/terminal.h share the same code, which is responsible for setting a bunch of defines on based on the presence of termios.h and a few other headers. This simple patch just moves this common code to common/gdb_termios.h and makes the necessary adjustments on both GDB and gdbserver so that they can use this new header. It also implements the some header checks on common/common.m4. As a bonus, gdb/gdbserver/terminal.h can be removed because it's now empty. Built on x86_64, no regressions found. gdb/ChangeLog: 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h". * common/common.m4: Check headers 'termios.h', 'termio.h' and 'sgtty.h'. * common/gdb_termios.h: New file, with parts of "terminal.h". * inflow.c: Include "gdb_termios.h". * ser-unix.c: Include "gdb_termios.h". * terminal.h: Move terminal-related defines to "common/gdb_termios.h". gdb/gdbserver/ChangeLog: 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> * remote-utils.c: Include "gdb_termios.h" instead of "terminal.h". * terminal.h: Delete file.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 7ffa83a17fb..23dcc4dc0c8 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -31,6 +31,7 @@
#include "inflow.h"
#include "gdbcmd.h"
+#include "gdb_termios.h"
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>