mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
Move scoped_ignore_sigttou to gdbsupport/
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
This commit is contained in:
@ -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>
|
2021-06-17 Pedro Alves <pedro@palves.net>
|
||||||
|
|
||||||
* tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
|
* tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
|
||||||
|
@ -1336,7 +1336,6 @@ HFILES_NO_SRCDIR = \
|
|||||||
inf-ptrace.h \
|
inf-ptrace.h \
|
||||||
infcall.h \
|
infcall.h \
|
||||||
inferior.h \
|
inferior.h \
|
||||||
inflow.h \
|
|
||||||
inline-frame.h \
|
inline-frame.h \
|
||||||
interps.h \
|
interps.h \
|
||||||
jit.h \
|
jit.h \
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "inferior.h"
|
#include "inferior.h"
|
||||||
#include "inflow.h"
|
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
#include "gdbcore.h"
|
#include "gdbcore.h"
|
||||||
#include "regcache.h"
|
#include "regcache.h"
|
||||||
|
@ -29,12 +29,12 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include "gdbsupport/gdb_select.h"
|
#include "gdbsupport/gdb_select.h"
|
||||||
|
|
||||||
#include "inflow.h"
|
|
||||||
#include "gdbcmd.h"
|
#include "gdbcmd.h"
|
||||||
#ifdef HAVE_TERMIOS_H
|
#ifdef HAVE_TERMIOS_H
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#endif
|
#endif
|
||||||
#include "gdbsupport/job-control.h"
|
#include "gdbsupport/job-control.h"
|
||||||
|
#include "gdbsupport/scoped_ignore_sigttou.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_IOCTL_H
|
#ifdef HAVE_SYS_IOCTL_H
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "gdb_bfd.h"
|
#include "gdb_bfd.h"
|
||||||
#include "inflow.h"
|
|
||||||
#include "auxv.h"
|
#include "auxv.h"
|
||||||
#include "procfs.h"
|
#include "procfs.h"
|
||||||
#include "observable.h"
|
#include "observable.h"
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#include "gdbcmd.h"
|
#include "gdbcmd.h"
|
||||||
#include "gdbsupport/filestuff.h"
|
#include "gdbsupport/filestuff.h"
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include "inflow.h"
|
#include "gdbsupport/scoped_ignore_sigttou.h"
|
||||||
|
|
||||||
struct hardwire_ttystate
|
struct hardwire_ttystate
|
||||||
{
|
{
|
||||||
|
@ -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>
|
2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
* .dir-locals.el: Set sentence-end-double-space for all modes, and
|
* .dir-locals.el: Set sentence-end-double-space for all modes, and
|
||||||
|
@ -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.
|
Copyright (C) 2003-2021 Free Software Foundation, Inc.
|
||||||
|
|
||||||
@ -17,8 +17,8 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#ifndef INFLOW_H
|
#ifndef SCOPED_IGNORE_SIGTTOU_H
|
||||||
#define INFLOW_H
|
#define SCOPED_IGNORE_SIGTTOU_H
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -53,4 +53,4 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* inflow.h */
|
#endif /* SCOPED_IGNORE_SIGTTOU_H */
|
Reference in New Issue
Block a user