[3/3,not,3/4] musl: Move __SIGRTMIN

Message ID 001a1136c39ab418f50522c8abb3@google.com
State New, archived
Headers

Commit Message

Doug Evans Oct. 23, 2015, 5:09 p.m. UTC
  Hi.

Sorry, I miscounted, this patch series has 3, not 4 as mentioned here:
https://sourceware.org/ml/gdb-patches/2015-10/msg00495.html

This patch moves __SIGRTMIN out of gdbserver so gdb can use it too.

With this series gdb builds and runs on musl.
Testsuite results are reasonable for now.

2015-10-23  Doug Evans  <dje@google.com>

	* gdbserver/linux-low.c (__SIGRTMIN): Move to ...
	* nat/linux-nat.h (__SIGRTMIN): ... here.
  

Patch

diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 7482a2b..512fba3 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -70,12 +70,6 @@ 
  #define O_LARGEFILE 0
  #endif

-/* This is the kernel's hard limit.  Not to be confused with
-   SIGRTMIN.  */
-#ifndef __SIGRTMIN
-#define __SIGRTMIN 32
-#endif
-
  /* Some targets did not define these ptrace constants from the start,
     so gdbserver defines them locally here.  In the future, these may
     be removed after they are added to asm/ptrace.h.  */
diff --git a/gdb/nat/linux-nat.h b/gdb/nat/linux-nat.h
index 0633fa9..70e6274 100644
--- a/gdb/nat/linux-nat.h
+++ b/gdb/nat/linux-nat.h
@@ -25,6 +25,11 @@ 
  struct lwp_info;
  struct arch_lwp_info;

+/* This is the kernel's hard limit.  Not to be confused with SIGRTMIN.  */
+#ifndef __SIGRTMIN
+#define __SIGRTMIN 32
+#endif
+
  /* Unlike other extended result codes, WSTOPSIG (status) on
     PTRACE_O_TRACESYSGOOD syscall events doesn't return SIGTRAP, but
     instead SIGTRAP with bit 7 set.  */