hurd: update RPC prototypes

2017-08-27 Thread Samuel Thibault
Since hurd's baf7e5c ('hurd: Use polymorphic port types to return some rights.'), some RPCs prototypes have changed, gdb needs the corresponding update. * gdb/gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply, S_proc_pid2proc_reply): Add `mach_msg_type_name_t type' parameter. diff --git

hurd: fix RPC stubs names

2017-08-27 Thread Samuel Thibault
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