From e327c35ef5768789d3ba41a629f178f5eec32790 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 1 Feb 2022 01:04:50 +0100 Subject: hurd: Fix RPC link names The RPC stub code expects to be calling a C function, not a C++ function. Change-Id: Idd7549fc118f2addc7fb4975667a011cacacc03f --- gdb/gnu-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index e0219b1..8167630 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -1766,7 +1766,7 @@ do_mach_notify_dead_name (mach_port_t notify, mach_port_t dead_port) #define ILL_RPC(fun, ...) \ - extern kern_return_t fun (__VA_ARGS__); \ + extern "C" kern_return_t fun (__VA_ARGS__); \ kern_return_t fun (__VA_ARGS__) \ { \ warning (_("illegal rpc: %s"), #fun); \ -- cgit v1.1