From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9983 invoked by alias); 16 Apr 2016 06:47:46 -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 9973 invoked by uid 89); 16 Apr 2016 06:47:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*r:501, Hx-languages-length:473, Hx-spam-relays-external:sk:fronten, H*RU:sk:fronten X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Sat, 16 Apr 2016 06:47:35 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3qn4hz5RPbz3hjNG; Sat, 16 Apr 2016 08:47:31 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3qn4hy73Y3zvh2C; Sat, 16 Apr 2016 08:47:30 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id REdatCSZlp4A; Sat, 16 Apr 2016 08:47:30 +0200 (CEST) X-Auth-Info: N2pjy/KpeUz/VUOZnJjxUJvseZT+fDvfDv58yN6FyLoOvZqh1QkasHnCgYzlbYHM Received: from linux.local (ppp-88-217-11-206.dynamic.mnet-online.de [88.217.11.206]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 16 Apr 2016 08:47:29 +0200 (CEST) Received: by linux.local (Postfix, from userid 501) id 834921E532C; Sat, 16 Apr 2016 08:47:26 +0200 (CEST) From: Andreas Schwab To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Fix PR gdb/19250: ptrace prototype is not detected properly in C++ mode References: <1460765786-12190-1-git-send-email-palves@redhat.com> X-Yow: Bagels... Date: Sat, 16 Apr 2016 06:47:00 -0000 In-Reply-To: <1460765786-12190-1-git-send-email-palves@redhat.com> (Pedro Alves's message of "Sat, 16 Apr 2016 01:16:26 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2016-04/txt/msg00377.txt.bz2 Wouldn't it be easier to split the configure check in two parts, one running in C mode that does the detection of the argument and return types, and a second part running in C++ mode that probes the need for the enum? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."