summaryrefslogtreecommitdiffstats
path: root/main/gdb/gdb-linux_threaddb.patch
blob: 4148a1a263f0f3fdb28a82c49e677a5feeec309c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -u -r -N gdb-7.3.1-org//gdb/linux-thread-db.c gdb-7.3.1-patched//gdb/linux-thread-db.c
--- gdb-7.3.1-org//gdb/linux-thread-db.c	1970-01-01 00:00:00.000000000 +0000
+++ gdb-7.3.1-patched//gdb/linux-thread-db.c	2011-09-22 22:17:38.648841814 +0000
@@ -47,6 +47,8 @@
 #include <gnu/libc-version.h>
 #endif
 
+#include "threadpathhack.h"
+
 /* GNU/Linux libthread_db support.
 
    libthread_db is a library, provided along with libpthread.so, which
diff -u -r -N gdb-7.3.1-org//gdb/threadpathhack.h gdb-7.3.1-patched//gdb/threadpathhack.h
--- gdb-7.3.1-org//gdb/threadpathhack.h	1970-01-01 00:00:00.000000000 +0000
+++ gdb-7.3.1-patched//gdb/threadpathhack.h	2011-09-22 22:17:38.648841814 +0000
@@ -0,0 +1,12 @@
+#ifndef HACK_PATH_SO
+#define HACK_PATH_SO
+
+#ifndef LIBTHREAD_DB_SO
+#define LIBTHREAD_DB_SO "bug.so"
+#endif
+#ifndef LIBTHREAD_DB_SEARCH_PATH
+#define LIBTHREAD_DB_SEARCH_PATH "/lib"
+#endif
+
+#endif
+