patch-gdb_linux-nat_c 840 B

1234567891011121314151617181920212223242526
  1. --- gdb-7.10.1.orig/gdb/linux-nat.c 2015-12-05 16:16:45.000000000 +0100
  2. +++ gdb-7.10.1/gdb/linux-nat.c 2016-01-16 20:48:29.412843026 +0100
  3. @@ -168,6 +168,10 @@ blocked. */
  4. /* Does the current host support PTRACE_GETREGSET? */
  5. enum tribool have_ptrace_getregset = TRIBOOL_UNKNOWN;
  6. +#ifndef W_STOPCODE
  7. +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
  8. +#endif
  9. +
  10. /* The single-threaded native GNU/Linux target_ops. We save a pointer for
  11. the use of the multi-threaded target. */
  12. static struct target_ops *linux_ops;
  13. @@ -5216,10 +5220,10 @@ lin_thread_get_thread_signals (sigset_t
  14. fortunately they don't change! */
  15. if (restart == 0)
  16. - restart = __SIGRTMIN;
  17. + restart = SIGRTMIN;
  18. if (cancel == 0)
  19. - cancel = __SIGRTMIN + 1;
  20. + cancel = SIGRTMIN + 1;
  21. sigaddset (set, restart);
  22. sigaddset (set, cancel);