ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

gdb-threaddb.patch (1079B)


      1 --- gdb-7.4.org/gdb/common/gdb_thread_db.h
      2 +++ gdb-7.4/gdb/common/gdb_thread_db.h
      3 @@ -1,17 +1,5 @@
      4  #ifdef HAVE_THREAD_DB_H
      5  #include <thread_db.h>
      6 -
      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  
     20  /* Copyright (C) 1999-2000, 2007-2012 Free Software Foundation, Inc.
     21 @@ -453,3 +441,15 @@
     22  #endif	/* thread_db.h */
     23  
     24  #endif /* HAVE_THREAD_DB_H */
     25 +
     26 +#ifndef LIBTHREAD_DB_SO
     27 +#define LIBTHREAD_DB_SO "libthread_db.so.1"
     28 +#endif
     29 +
     30 +#ifndef LIBTHREAD_DB_SEARCH_PATH
     31 +/* $sdir appears before $pdir for some minimal security protection:
     32 +   we trust the system libthread_db.so a bit more than some random
     33 +   libthread_db associated with whatever libpthread the app is using.  */
     34 +#define LIBTHREAD_DB_SEARCH_PATH "$sdir:$pdir"
     35 +#endif
     36 +