From patchwork Sun Aug 27 18:37:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 22371 Received: (qmail 84197 invoked by alias); 27 Aug 2017 18:37:57 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 84180 invoked by uid 89); 27 Aug 2017 18:37:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=Hx-languages-length:633, RPC X-HELO: hera.aquilenet.fr Received: from hera.aquilenet.fr (HELO hera.aquilenet.fr) (141.255.128.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 27 Aug 2017 18:37:53 +0000 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id C1317DB97; Sun, 27 Aug 2017 20:37:51 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M_uAjuT7Vhe3; Sun, 27 Aug 2017 20:37:51 +0200 (CEST) Received: from var.youpi.perso.aquilenet.fr (unknown [IPv6:2a01:cb19:181:c200:3602:86ff:fe2c:6a19]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 26BD2D75E; Sun, 27 Aug 2017 20:37:51 +0200 (CEST) Received: from samy by var.youpi.perso.aquilenet.fr with local (Exim 4.89) (envelope-from ) id 1dm2RR-0003cN-Kz; Sun, 27 Aug 2017 20:37:49 +0200 Date: Sun, 27 Aug 2017 20:37:49 +0200 From: Samuel Thibault To: gdb-patches@sourceware.org Cc: Thomas Schwinge Subject: hurd: fix RPC stubs names Message-ID: <20170827183749.2ecowdoexc4mmkjq@var.youpi.perso.aquilenet.fr> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Mach RPCs expect C names for RPC stubs, so we should make sure they are defined with C names. * gdb/gnu-nat.c (ILL_RPC): Enclose RPC stub definition in extern "C" { } diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index d5e3841e68..b39d3d0a90 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -1796,11 +1796,13 @@ do_mach_notify_dead_name (mach_port_t notify, mach_port_t dead_port) #define ILL_RPC(fun, ...) \ + extern "C" { \ extern kern_return_t fun (__VA_ARGS__); \ kern_return_t fun (__VA_ARGS__) \ { \ warning (_("illegal rpc: %s"), #fun); \ return 0; \ + } \ } ILL_RPC (do_mach_notify_no_senders,