From 346e12773219b8a514b6cab7a670777c0fb554b6 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Wed, 1 Apr 2009 21:00:59 +0100 Subject: util: Lookup symbol names from addresses. Nice for stack backtraces. Windows-only for now. --- src/gallium/auxiliary/util/u_debug_stack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/util/u_debug_stack.c') 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); } } -- cgit v1.2.3