summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_debug_stack.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-04-01 21:00:59 +0100
committerJosé Fonseca <[email protected]>2009-04-01 21:29:58 +0100
commit346e12773219b8a514b6cab7a670777c0fb554b6 (patch)
treef48d7c1c2e194b1fdf01469957d3968abf5229cf /src/gallium/auxiliary/util/u_debug_stack.c
parentd11a476ead3e617e45b091f73bd1f67042643a0f (diff)
util: Lookup symbol names from addresses.
Nice for stack backtraces. Windows-only for now.
Diffstat (limited to 'src/gallium/auxiliary/util/u_debug_stack.c')
-rw-r--r--src/gallium/auxiliary/util/u_debug_stack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_debug_stack.c b/src/gallium/auxiliary/util/u_debug_stack.c
index e5d61907c0e..e9891fde8a3 100644
--- a/src/gallium/auxiliary/util/u_debug_stack.c
+++ b/src/gallium/auxiliary/util/u_debug_stack.c
@@ -33,6 +33,7 @@
*/
#include "u_debug.h"
+#include "u_debug_symbol.h"
#include "u_debug_stack.h"
@@ -91,7 +92,7 @@ debug_backtrace_dump(const struct debug_stack_frame *backtrace,
for(i = 0; i < nr_frames; ++i) {
if(!backtrace[i].function)
break;
- debug_printf("\t%p\n", backtrace[i].function);
+ debug_symbol_print(backtrace[i].function);
}
}