e115499952
Having this on a separate file makes it easier to import a new version -- one can just copy over instead of having to care about preserving the GDB-specific bits. 2013-04-16 Pedro Alves <palves@redhat.com> * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ... * common/glibc_thread_db.h: ... this new file ... * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
17 lines
462 B
C
17 lines
462 B
C
#ifdef HAVE_THREAD_DB_H
|
|
#include <thread_db.h>
|
|
#else
|
|
#include "glibc_thread_db.h"
|
|
#endif
|
|
|
|
#ifndef LIBTHREAD_DB_SO
|
|
#define LIBTHREAD_DB_SO "libthread_db.so.1"
|
|
#endif
|
|
|
|
#ifndef LIBTHREAD_DB_SEARCH_PATH
|
|
/* $sdir appears before $pdir for some minimal security protection:
|
|
we trust the system libthread_db.so a bit more than some random
|
|
libthread_db associated with whatever libpthread the app is using. */
|
|
#define LIBTHREAD_DB_SEARCH_PATH "$sdir:$pdir"
|
|
#endif
|