blob: 650634855bc304f00f0c4792cc5a60a218dc1bec (
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
|
This is a quite ugly hack to make it compile.
TODO: use libunwind instead.
---
--- a/tmate-debug.c
+++ b/tmate-debug.c
@@ -60,18 +60,17 @@ void tmate_print_stack_trace(void)
char **strings;
size_t i;
+#if 0
size = backtrace (array, 20);
strings = backtrace_symbols (array, size);
tmate_info ("============ %zd stack frames ============", size);
for (i = 1; i < size; i++) {
-#if DEBUG
if (print_resolved_stack_frame(strings[i]) < 0)
-#endif
tmate_info("%s", strings[i]);
}
-
+#endif
free (strings);
}
|