From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73393 invoked by alias); 15 Jul 2018 10:49:25 -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 73377 invoked by uid 89); 15 Jul 2018 10:49:24 -0000 Authentication-Results: sourceware.org; auth=none 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,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=fun, samuel, H*r:2a01, (unknown) X-HELO: hera.aquilenet.fr Received: from hera.aquilenet.fr (HELO hera.aquilenet.fr) (185.233.100.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 15 Jul 2018 10:49:22 +0000 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id D2ACBF51; Sun, 15 Jul 2018 12:49:18 +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 OYwZztuhHcES; Sun, 15 Jul 2018 12:49:18 +0200 (CEST) Received: from var.youpi.perso.aquilenet.fr (2a01cb008837b300360286fffe2c6a19.ipv6.abo.wanadoo.fr [IPv6:2a01:cb00:8837:b300:3602:86ff:fe2c:6a19]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 03918F4E; Sun, 15 Jul 2018 12:49:17 +0200 (CEST) Received: from samy by var.youpi.perso.aquilenet.fr with local (Exim 4.91) (envelope-from ) id 1feeab-0003Sn-LU; Sun, 15 Jul 2018 12:49:17 +0200 Date: Sun, 15 Jul 2018 10:49:00 -0000 From: Samuel Thibault To: gdb-patches@sourceware.org Cc: Thomas Schwinge Subject: Re: hurd: fix RPC stubs names Message-ID: <20180715104917.pogzrsd3csscjq3w@var.youpi.perso.aquilenet.fr> References: <20170827183749.2ecowdoexc4mmkjq@var.youpi.perso.aquilenet.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170827183749.2ecowdoexc4mmkjq@var.youpi.perso.aquilenet.fr> User-Agent: NeoMutt/20170113 (1.7.2) X-SW-Source: 2018-07/txt/msg00460.txt.bz2 Ping? Samuel Thibault, le dim. 27 août 2017 20:37:49 +0200, a ecrit: > 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,