patch-gdb_common_gdb_thread_db_h 1.2 KB

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