patch-gdb_common_gdb_thread_db_h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. * added from https://github.com/rofl0r/sabotage
  2. --- gdb-7.6.orig/gdb/common/gdb_thread_db.h 2013-01-01 07:32:54.000000000 +0100
  3. +++ gdb-7.6/gdb/common/gdb_thread_db.h 2013-08-13 16:37:40.000000000 +0200
  4. @@ -1,17 +1,6 @@
  5. #ifdef HAVE_THREAD_DB_H
  6. #include <thread_db.h>
  7. -#ifndef LIBTHREAD_DB_SO
  8. -#define LIBTHREAD_DB_SO "libthread_db.so.1"
  9. -#endif
  10. -
  11. -#ifndef LIBTHREAD_DB_SEARCH_PATH
  12. -/* $sdir appears before $pdir for some minimal security protection:
  13. - we trust the system libthread_db.so a bit more than some random
  14. - libthread_db associated with whatever libpthread the app is using. */
  15. -#define LIBTHREAD_DB_SEARCH_PATH "$sdir:$pdir"
  16. -#endif
  17. -
  18. #else
  19. /* Copyright (C) 1999-2013 Free Software Foundation, Inc.
  20. @@ -453,3 +442,14 @@ extern td_err_e td_thr_dbresume (const t
  21. #endif /* thread_db.h */
  22. #endif /* HAVE_THREAD_DB_H */
  23. +
  24. +#ifndef LIBTHREAD_DB_SO
  25. +#define LIBTHREAD_DB_SO "libthread_db.so.1"
  26. +#endif
  27. +
  28. +#ifndef LIBTHREAD_DB_SEARCH_PATH
  29. +/* $sdir appears before $pdir for some minimal security protection:
  30. + we trust the system libthread_db.so a bit more than some random
  31. + libthread_db associated with whatever libpthread the app is using. */
  32. +#define LIBTHREAD_DB_SEARCH_PATH "$sdir:$pdir"
  33. +#endif