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: [3/2] Inspect extra signal information, handle amd64 bi-arch gdb


On Saturday 07 February 2009 02:28:44, Paul Pluzhnikov wrote:
> On Fri, Feb 6, 2009 at 3:37 PM, Pedro Alves <pedro@codesourcery.com> wrote:
> This just broke my build :-(
> 
> ../../src/gdb/linux-nat.c: In function 'linux_xfer_siginfo':
> ../../src/gdb/linux-nat.c:3302: error: 'PTRACE_SETSIGINFO' undeclared
> (first use in this function)
> ../../src/gdb/linux-nat.c:3302: error: (Each undeclared identifier is
> reported only once
> ../../src/gdb/linux-nat.c:3302: error: for each function it appears in.)
> make: *** [linux-nat.o] Error 1
> 
> I am targeting glibc-2.3.6, and that doesn't appear to have
> PTRACE_SETSIGINFO
> 

I've committed the below to fix it.  gdbserver doesn't need fixing, as
it's already doing this.  According to grep over glibc 2.9, this value
is good for all archs.

-- 
Pedro Alves

2009-02-07  Pedro Alves  <pedro@codesourcery.com>

	* linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
	isn't defined.

---
 gdb/linux-nat.c |    1 +
 1 file changed, 1 insertion(+)

Index: src/gdb/linux-nat.c
===================================================================
--- src.orig/gdb/linux-nat.c	2009-02-07 14:34:40.000000000 +0000
+++ src/gdb/linux-nat.c	2009-02-07 14:43:32.000000000 +0000
@@ -195,6 +195,7 @@ blocked.  */
 
 #ifndef PTRACE_GETSIGINFO
 #define PTRACE_GETSIGINFO    0x4202
+#define PTRACE_SETSIGINFO    0x4203
 #endif
 
 /* The single-threaded native GNU/Linux target_ops.  We save a pointer for


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