[3/3,not,3/4] musl: Move __SIGRTMIN
Commit Message
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.
@@ -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. */
@@ -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. */