patch-gdb_linux-nat_c 673 B

12345678910111213141516171819202122232425262728
  1. * added from https://github.com/rofl0r/sabotage
  2. --- gdb-7.6.orig/gdb/linux-nat.c 2013-02-13 15:59:49.000000000 +0100
  3. +++ gdb-7.6/gdb/linux-nat.c 2013-08-13 17:01:09.000000000 +0200
  4. @@ -79,6 +79,14 @@
  5. # endif
  6. #endif /* HAVE_PERSONALITY */
  7. +#ifndef __SIGRTMIN
  8. +#define __SIGRTMIN SIGRTMIN
  9. +#endif
  10. +
  11. +#ifndef W_STOPCODE
  12. +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
  13. +#endif
  14. +
  15. /* This comment documents high-level logic of this file.
  16. Waiting for events in sync mode
  17. @@ -2379,7 +2387,7 @@ linux_handle_extended_wait (struct lwp_i
  18. status = 0;
  19. }
  20. - if (non_stop)
  21. + if (1)
  22. {
  23. /* Add the new thread to GDB's lists as soon as possible
  24. so that: