0003-move-__SIGRTMIN.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 682b25469e66ea45b214e95962671373983c118f Mon Sep 17 00:00:00 2001
  2. From: Doug Evans <dje@google.com>
  3. Date: Mon, 26 Oct 2015 13:30:57 -0700
  4. Subject: [PATCH] Move __SIGRTMIN.
  5. gdb/ChangeLog:
  6. * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
  7. gdb/gdbserver/ChangeLog:
  8. * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
  9. [Arnout: removed the parts that don't apply, including ChangeLog]
  10. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
  11. ---
  12. gdb/ChangeLog | 4 ++++
  13. gdb/gdbserver/ChangeLog | 4 ++++
  14. gdb/gdbserver/linux-low.c | 6 ------
  15. gdb/nat/linux-nat.h | 5 +++++
  16. 4 files changed, 13 insertions(+), 6 deletions(-)
  17. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
  18. index 7ed67c7..e778c4c 100644
  19. --- a/gdb/gdbserver/linux-low.c
  20. +++ b/gdb/gdbserver/linux-low.c
  21. @@ -70,12 +70,6 @@
  22. #define O_LARGEFILE 0
  23. #endif
  24. -/* This is the kernel's hard limit. Not to be confused with
  25. - SIGRTMIN. */
  26. -#ifndef __SIGRTMIN
  27. -#define __SIGRTMIN 32
  28. -#endif
  29. -
  30. /* Some targets did not define these ptrace constants from the start,
  31. so gdbserver defines them locally here. In the future, these may
  32. be removed after they are added to asm/ptrace.h. */
  33. diff --git a/gdb/nat/linux-nat.h b/gdb/nat/linux-nat.h
  34. index 0633fa9..70e6274 100644
  35. --- a/gdb/nat/linux-nat.h
  36. +++ b/gdb/nat/linux-nat.h
  37. @@ -25,6 +25,11 @@
  38. struct lwp_info;
  39. struct arch_lwp_info;
  40. +/* This is the kernel's hard limit. Not to be confused with SIGRTMIN. */
  41. +#ifndef __SIGRTMIN
  42. +#define __SIGRTMIN 32
  43. +#endif
  44. +
  45. /* Unlike other extended result codes, WSTOPSIG (status) on
  46. PTRACE_O_TRACESYSGOOD syscall events doesn't return SIGTRAP, but
  47. instead SIGTRAP with bit 7 set. */
  48. --
  49. 1.9.4