binutils-gdb/gdb/nat
Simon Marchi a288518611 gdb/linux: remove ptrace support check for exec, fork, vfork, vforkdone, clone, sysgood
I think it's safe to remove checking support for these ptrace features,
they have all been added in what is now ancient times (around the
beginning of Linux 2.6).  This allows removing a bit of complexity in
linux-nat.c and nat/linux-ptrace.c.

It also allows saving one extra fork every time we start debugging on
Linux: linux_check_ptrace_features forks a child process to test if some
ptrace features are supported.  That child process forks a grand-child,
to test whether ptrace reports an event for the fork by the child.  This
is no longer needed, if we assume the kernel supports reporting forks.

PTRACE_O_TRACEVFORKDONE was introduced in Linux in this change, in 2003:

  https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=45c1a159b85b3b30afd26a77b4be312226bba416

PTRACE_O_TRACESYSGOOD was supported at least as of this change, in 2002:

  https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=acc7088569c8eef04eeed0eff51d23bb5bcff964

PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK, PTRACE_O_TRACEEXEC and
PTRACE_O_TRACECLONE were introduced in this change, in 2002:

  https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/?id=a0691b116f6a4473f0fa264210ab9b95771a2b46

Change-Id: Iffb906549a89cc6b619427f976ec044706ab1e8d
2022-02-10 20:10:12 -05:00
..
aarch64-linux-hw-point.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-linux-hw-point.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-linux.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-linux.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-mte-linux-ptrace.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-mte-linux-ptrace.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-sve-linux-ptrace.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-sve-linux-ptrace.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
aarch64-sve-linux-sigcontext.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
amd64-linux-siginfo.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
amd64-linux-siginfo.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
fork-inferior.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
fork-inferior.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
gdb_ptrace.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
gdb_thread_db.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
glibc_thread_db.h
linux-btrace.c gdb, btrace: improve error messages 2022-02-01 17:44:38 +01:00
linux-btrace.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-namespaces.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-namespaces.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-nat.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-osdata.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-osdata.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-personality.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-personality.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-procfs.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-procfs.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-ptrace.c gdb/linux: remove ptrace support check for exec, fork, vfork, vforkdone, clone, sysgood 2022-02-10 20:10:12 -05:00
linux-ptrace.h gdb/linux: remove ptrace support check for exec, fork, vfork, vforkdone, clone, sysgood 2022-02-10 20:10:12 -05:00
linux-waitpid.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
linux-waitpid.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mips-linux-watch.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
mips-linux-watch.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
netbsd-nat.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
netbsd-nat.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
ppc-linux.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
ppc-linux.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
riscv-linux-tdesc.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
riscv-linux-tdesc.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
windows-nat.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
windows-nat.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
x86-cpuid.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
x86-dregs.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
x86-dregs.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
x86-gcc-cpuid.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
x86-linux-dregs.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
x86-linux-dregs.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
x86-linux.c Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00
x86-linux.h Automatic Copyright Year update after running gdb/copyright.py 2022-01-01 19:13:23 +04:00