[PATCH 0/6] Improve ptrace-error detection
Sergio Durigan Junior
sergiodj@redhat.com
Wed Feb 26 20:06:00 GMT 2020
This patch series is the continuation of:
[PATCH v5] Improve ptrace-error detection on Linux targets
https://sourceware.org/ml/gdb-patches/2019-09/msg00504.html
I decided to start a new series because this involved a rewrite of
several parts of the patch. I addressed all of the comments I
received back in September (mostly from Pedro), but I also did some
improvements, especially in the 'fork_inferior' code.
After submitting this series to our Buildbot, no regressions were
found.
Sergio Durigan Junior (6):
Introduce scoped_pipe.h
Don't reset errno/bfd_error on 'throw_perror_with_name'
Expand 'fork_inferior' to check whether 'traceme_fun' succeeded
Extend GNU/Linux to check for ptrace error
Document Linux-specific possible ptrace restrictions
Fix comment for 'gdb_dlopen'
gdb/Makefile.in | 1 +
gdb/doc/gdb.texinfo | 143 ++++++++++++++++
gdb/inf-ptrace.c | 18 +-
gdb/linux-nat.c | 10 +-
gdb/nat/fork-inferior.c | 231 ++++++++++++++++++++++++--
gdb/nat/fork-inferior.h | 87 ++++++++--
gdb/nat/linux-ptrace.c | 178 +++++++++++++++++++-
gdb/nat/linux-ptrace.h | 27 ++-
gdb/remote.c | 40 ++++-
gdb/unittests/scoped_pipe-selftests.c | 96 +++++++++++
gdb/utils.c | 6 -
gdbserver/linux-low.cc | 31 +++-
gdbserver/server.cc | 38 ++++-
gdbserver/thread-db.cc | 2 +-
gdbserver/utils.cc | 2 +
gdbsupport/gdb-dlfcn.h | 4 +-
gdbsupport/scoped_pipe.h | 63 +++++++
17 files changed, 909 insertions(+), 68 deletions(-)
create mode 100644 gdb/unittests/scoped_pipe-selftests.c
create mode 100644 gdbsupport/scoped_pipe.h
--
2.24.1
More information about the Gdb-patches
mailing list