]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move scoped_ignore_sigttou to gdbsupport/
authorPedro Alves <pedro@palves.net>
Thu, 3 Jun 2021 18:39:19 +0000 (19:39 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 14 Jun 2021 20:53:54 +0000 (21:53 +0100)
A following patch will want to use scoped_ignore_sigttou in code
shared between GDB and GDBserver.  Move it under gdbsupport/.

Note that despite what inflow.h/inflow.c's first line says, inflow.c
is no longer about ptrace, it is about terminal management.  Some
other files were unnecessarily including inflow.h, I guess a leftover
from the days when inflow.c really was about ptrace.  Those inclusions
are simply dropped.

gdb/ChangeLog:
yyyy-mm-dd  Pedro Alves  <pedro@palves.net>

* Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
* inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
* inflow.h: Delete, moved to gdbsupport/ under a different name.
* ser-unix.c: Don't include "inflow.h".  Include
"gdbsupport/scoped_ignore_sigttou.h".

gdbsupport/ChangeLog:
yyyy-mm-dd  Pedro Alves  <pedro@palves.net>

* scoped_ignore_sigttou.h: New file, moved from gdb/ and renamed.

Change-Id: Ie390abf42c3a78bec6d282ad2a63edd3e623559a

gdb/Makefile.in
gdb/inf-ptrace.c
gdb/inflow.c
gdb/procfs.c
gdb/ser-unix.c
gdbsupport/scoped_ignore_sigttou.h [moved from gdb/inflow.h with 90% similarity]

index f664d964536d630b8b8e66b85901a066e93b8fe1..000d5f950c7f9a44cf448d06e8392b45ce78dcde 100644 (file)
@@ -1336,7 +1336,6 @@ HFILES_NO_SRCDIR = \
        inf-ptrace.h \
        infcall.h \
        inferior.h \
-       inflow.h \
        inline-frame.h \
        interps.h \
        jit.h \
index b6fa71fd2c0b08e97acd9a619a3419c8cbb014ea..afa38de6ef7ce00ab8f136971ff58ceaabbfa49b 100644 (file)
@@ -20,7 +20,6 @@
 #include "defs.h"
 #include "command.h"
 #include "inferior.h"
-#include "inflow.h"
 #include "terminal.h"
 #include "gdbcore.h"
 #include "regcache.h"
index 15f29dcd08e9a530db9cf2e654147649ea4ff3b5..0a9df6054b07fb8ac852e3a74daf76daf27c6fd1 100644 (file)
 #include <fcntl.h>
 #include "gdbsupport/gdb_select.h"
 
-#include "inflow.h"
 #include "gdbcmd.h"
 #ifdef HAVE_TERMIOS_H
 #include <termios.h>
 #endif
 #include "gdbsupport/job-control.h"
+#include "gdbsupport/scoped_ignore_sigttou.h"
 
 #ifdef HAVE_SYS_IOCTL_H
 #include <sys/ioctl.h>
index 23c0aa22a7a60727cfb3973b064cb76b11c565c8..529ee33df9003d70c04d05fabc4bd106ae36a3df 100644 (file)
@@ -40,7 +40,6 @@
 #include <signal.h>
 #include <ctype.h>
 #include "gdb_bfd.h"
-#include "inflow.h"
 #include "auxv.h"
 #include "procfs.h"
 #include "observable.h"
index e97dc2f925d6189f424dfb638290de83062811ae..96d024eea3d956814f976b4be533c12178a26626 100644 (file)
@@ -32,7 +32,7 @@
 #include "gdbcmd.h"
 #include "gdbsupport/filestuff.h"
 #include <termios.h>
-#include "inflow.h"
+#include "gdbsupport/scoped_ignore_sigttou.h"
 
 struct hardwire_ttystate
   {
similarity index 90%
rename from gdb/inflow.h
rename to gdbsupport/scoped_ignore_sigttou.h
index 8a671c7c4c7fc6d1f70b324ba53f941d7f8a9e14..a31316460b4bf89e7b551fa87ab5afec9c3137e1 100644 (file)
@@ -1,4 +1,4 @@
-/* Low level interface to ptrace, for GDB when running under Unix.
+/* Support for signoring SIGTTOU.
 
    Copyright (C) 2003-2021 Free Software Foundation, Inc.
 
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef INFLOW_H
-#define INFLOW_H
+#ifndef SCOPED_IGNORE_SIGTTOU_H
+#define SCOPED_IGNORE_SIGTTOU_H
 
 #include <unistd.h>
 #include <signal.h>
@@ -53,4 +53,4 @@ private:
 #endif
 };
 
-#endif /* inflow.h */
+#endif /* SCOPED_IGNORE_SIGTTOU_H */