summaryrefslogtreecommitdiff
path: root/gdb/common/gdb_thread_db.h
blob: a1d947327f2f350f86379c0bd6db5d0db4660d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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