From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90675 invoked by alias); 6 Mar 2015 21:04:06 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 90665 invoked by uid 89); 6 Mar 2015 21:04:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: glazunov.sibelius.xs4all.nl Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 06 Mar 2015 21:04:04 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id t26L3tl6029409; Fri, 6 Mar 2015 22:03:55 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id t26L3tef004332; Fri, 6 Mar 2015 22:03:55 +0100 (CET) Date: Fri, 06 Mar 2015 21:04:00 -0000 Message-Id: <201503062103.t26L3tef004332@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: palves@redhat.com CC: gdb-patches@sourceware.org In-reply-to: <1425671886-7798-3-git-send-email-palves@redhat.com> (message from Pedro Alves on Fri, 6 Mar 2015 19:58:02 +0000) Subject: Re: [PATCH 2/6] Introduce throw_ptrace_error References: <1425671886-7798-1-git-send-email-palves@redhat.com> <1425671886-7798-3-git-send-email-palves@redhat.com> X-SW-Source: 2015-03/txt/msg00184.txt.bz2 > From: Pedro Alves > 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.