OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../gdb/legacy_sus.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. usleep() was deprecated by SUSv3 and newer LIBCs are starting to enforce that
  17. deprecation.
  18. --- ./gdb/linux-nat.c.orig 2010-09-24 13:21:55.000000000 -0400
  19. +++ ./gdb/linux-nat.c 2010-09-24 13:28:23.000000000 -0400
  20. @@ -441,7 +441,8 @@
  21. is only the single-step breakpoint at vfork's return
  22. point. */
  23. - usleep (10000);
  24. + const struct timespec t = {0, 10000000L};
  25. + nanosleep(&t, NULL);
  26. }
  27. /* Since we vforked, breakpoints were removed in the parent
  28. --- ./gdb/gdbserver/linux-low.c.orig 2010-09-24 13:38:06.000000000 -0400
  29. +++ ./gdb/gdbserver/linux-low.c 2010-09-24 13:39:40.000000000 -0400
  30. @@ -384,6 +384,7 @@
  31. {
  32. int ret;
  33. int to_wait_for = -1;
  34. + const struct timespec ms = {0, 1000000L};
  35. if (*childp != NULL)
  36. to_wait_for = (*childp)->lwpid;
  37. @@ -410,7 +411,7 @@
  38. else if (ret > 0)
  39. break;
  40. - usleep (1000);
  41. + nanosleep(&ms, NULL);
  42. }
  43. if (debug_threads