]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move scoped_ignore_sigttou to gdbsupport/
authorPedro Alves <pedro@palves.net>
Thu, 17 Jun 2021 15:16:54 +0000 (16:16 +0100)
committerPedro Alves <pedro@palves.net>
Thu, 17 Jun 2021 15:22:11 +0000 (16:22 +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/ChangeLog
gdb/Makefile.in
gdb/inf-ptrace.c
gdb/inflow.c
gdb/procfs.c
gdb/ser-unix.c
gdbsupport/ChangeLog
gdbsupport/scoped_ignore_sigttou.h [moved from gdb/inflow.h with 90% similarity]

index 497d9f6aee48b3a5c9b864194659919a269a2574..63d7cf53b1987e9284a333dc98abff92bf0ef0b1 100644 (file)
@@ -1,3 +1,11 @@
+2021-06-17  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".
+
 2021-06-17  Pedro Alves  <pedro@palves.net>
 
        * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
index b3d264f267cb7040808cbfec272f8e486414a08e..881ebde8fb0ac2819d00303c917b13b8ae093130 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 d241540c4cd6c8363b673136b50b4ae31d95d6ae..f9917d6a81cd6e8ba04f2f9a2bc58edeb2302781 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
   {
index b790a972300e3bff7b1edc0ac2cbfb19904c2b95..ac424f3ae7fd4a4f5f827e223f004ada3302a312 100644 (file)
@@ -1,3 +1,7 @@
+2021-06-17  Pedro Alves  <pedro@palves.net>
+
+       * scoped_ignore_sigttou.h: New file, moved from gdb/ and renamed.
+
 2021-05-17  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * .dir-locals.el: Set sentence-end-double-space for all modes, and
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 */