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]

[rfc] Define PTRACE_GETSIGINFO in linux-nat.c


Hi,

the new save_siginfo() function from linux-nat.c breaks my build on

Linux bbkeks 2.6.9-55.0.6.EL #1 Thu Aug 23 10:59:21 EDT 2007 i686 i686 i386 GNU/Linux

because PTRACE_GETSIGINFO isn't defined in the includes. The patch takes over definition of it from ppc-linux-nat.c


ChangeLog:


* linux-nat.c (PTRACE_GETSIGINFO): Add define.

Tested on x86.

Is this ok to commit or would it be better to move it to a header (linux-nat.h ?) file and delete it from ppc-linux-nat.c as well to prevent redundancy?

Regards,
Markus

--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com

diff -urpN src/gdb/linux-nat.c dev/gdb/linux-nat.c
--- src/gdb/linux-nat.c	2007-10-01 09:00:51.000000000 +0200
+++ dev/gdb/linux-nat.c	2007-10-02 08:43:40.000000000 +0200
@@ -84,6 +84,10 @@
 #define __WALL          0x40000000 /* Wait for any child.  */
 #endif
 
+#ifndef PTRACE_GETSIGINFO
+#define PTRACE_GETSIGINFO    0x4202
+#endif
+
 /* The single-threaded native GNU/Linux target_ops.  We save a pointer for
    the use of the multi-threaded target.  */
 static struct target_ops *linux_ops;

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