* hurd: fix RPC stubs names
@ 2017-08-27 18:37 Samuel Thibault
2018-07-15 10:49 ` Samuel Thibault
0 siblings, 1 reply; 3+ messages in thread
From: Samuel Thibault @ 2017-08-27 18:37 UTC (permalink / raw)
To: gdb-patches; +Cc: Thomas Schwinge
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)
\f
#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,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hurd: fix RPC stubs names
2017-08-27 18:37 hurd: fix RPC stubs names Samuel Thibault
@ 2018-07-15 10:49 ` Samuel Thibault
2018-07-15 13:02 ` Thomas Schwinge
0 siblings, 1 reply; 3+ messages in thread
From: Samuel Thibault @ 2018-07-15 10:49 UTC (permalink / raw)
To: gdb-patches; +Cc: Thomas Schwinge
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)
>
> \f
> #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,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hurd: fix RPC stubs names
2018-07-15 10:49 ` Samuel Thibault
@ 2018-07-15 13:02 ` Thomas Schwinge
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Schwinge @ 2018-07-15 13:02 UTC (permalink / raw)
To: Samuel Thibault, gdb-patches
Hi!
On Sun, 15 Jul 2018 12:49:17 +0200, Samuel Thibault <samuel.thibault@gnu.org> wrote:
> Ping?
I'm currently (really!) working on catching up with the last 1.5 years of
binutils-gdb sources changes, with only the changes of the last six
months remaining now, and will apply the patches once I'm up to date.
I've got a few more patches already to keep things build and work.
Thanks for your patience -- just a little bit more now. :-)
Grüße
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-15 13:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-27 18:37 hurd: fix RPC stubs names Samuel Thibault
2018-07-15 10:49 ` Samuel Thibault
2018-07-15 13:02 ` Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).