This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc 7/9]#2 Associate siginfo_t with any signal


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]