blob: 63511bff5f31b1cc5ff1c07f61779373b3f896ad (
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
29
30
|
libmemcached/backtrace.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- libmemcached-1.0.15.orig/libmemcached/backtrace.cc
+++ libmemcached-1.0.15/libmemcached/backtrace.cc
@@ -75,10 +75,11 @@ void custom_backtrace(void)
{
for (int x= 0; x < stack_frames; x++)
{
bool was_demangled= false;
+#if USE_DEMANGLE == 1
if (USE_DEMANGLE)
{
#ifdef HAVE_DLFCN_H
Dl_info dlinfo;
if (dladdr(backtrace_buffer[x], &dlinfo))
@@ -107,11 +108,11 @@ void custom_backtrace(void)
dlinfo.dli_fname);
}
}
#endif
}
-
+#endif
if (was_demangled == false)
{
fprintf(stderr, "?%d %p in %s\n", x, backtrace_buffer[x], symbollist[x]);
}
}
|