This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc 7/9]#2 Associate siginfo_t with any signal
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: jan dot kratochvil at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 30 Aug 2010 21:11:43 +0200 (CEST)
- Subject: Re: [rfc 7/9]#2 Associate siginfo_t with any signal
- References: <20100830071358.GH6831@host1.dyn.jankratochvil.net>
> Date: Mon, 30 Aug 2010 09:13:58 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
Ah, here are the other PTRACE_GETSIGINFO bits I was looking for.
> --- a/gdb/inf-ptrace.c
> +++ b/gdb/inf-ptrace.c
> @@ -39,6 +39,11 @@
>
>
>
> +#ifndef PTRACE_GETSIGINFO
> +# define PTRACE_GETSIGINFO 0x4202
> +# define PTRACE_SETSIGINFO 0x4203
> +#endif
Sorry, but this isn't right; it will make GDB perform random ioctls on
non-Linux systems.
Instead the siginfo support code in this file should be wrapped in
#ifdef PTRACE_GETSIGINFO. Sorry, Linux users just have to make sure
their header files match the kernel they're running.
Or perhaps you should just copy the siginfo-using bits from
inf-ptrace.c into linux-nat.c.
Cheers,
Mark