This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/6] Introduce throw_ptrace_error
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: palves at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 6 Mar 2015 22:03:55 +0100 (CET)
- Subject: Re: [PATCH 2/6] Introduce throw_ptrace_error
- Authentication-results: sourceware.org; auth=none
- References: <1425671886-7798-1-git-send-email-palves at redhat dot com> <1425671886-7798-3-git-send-email-palves at redhat dot com>
> From: Pedro Alves <palves@redhat.com>
> Date: Fri, 6 Mar 2015 19:58:02 +0000
>
> This adds a new function that is meant to be called instead of
> perror_with_name whenever we get an error out of ptrace. The
> idea is to convert some errno errors to different GDB exceptions in
> a following patch.
What is ptrace-specific about throwing an error? This really feels
like the wrong direction to me.