This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/6] Improve ptrace-error detection
- From: Sergio Durigan Junior < sergiodj at redhat dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Cc: Pedro Alves <palves at redhat dot com>, Tom Tromey <tom at tromey dot com>, Eli Zaretskii <eliz at gnu dot org>, Ruslan Kabatsayev <b7 dot 10110111 at gmail dot com>
- Date: Fri, 06 Mar 2020 17:30:17 -0500
- Subject: Re: [PATCH 0/6] Improve ptrace-error detection
- References: <20190926042155.31481-1-sergiodj@redhat.com> <20200226200542.746617-1-sergiodj@redhat.com>
On Wednesday, February 26 2020, I wrote:
> 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
Ping. Some of the patch have not been reviewed yet. I can submit a v2
with an updated version of the series if needed.
Thanks.
> 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
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/