projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21cbd63
)
hurd: Fix RPC link names
author
Samuel Thibault
<samuel.thibault@gnu.org>
Tue, 1 Feb 2022 00:04:50 +0000
(
01:04
+0100)
committer
Simon Marchi
<simon.marchi@polymtl.ca>
Tue, 1 Feb 2022 01:30:48 +0000
(20:30 -0500)
The RPC stub code expects to be calling a C function, not a C++
function.
Change-Id: Idd7549fc118f2addc7fb4975667a011cacacc03f
gdb/gnu-nat.c
patch
|
blob
|
history
diff --git
a/gdb/gnu-nat.c
b/gdb/gnu-nat.c
index e0219b1a3fff6003f8cf9ec17fe0b7d5d0bcebb4..81676308882ba4d34f688db7cc902ffe4cdc2d9e 100644
(file)
--- 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)
\f
#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); \