summaryrefslogtreecommitdiff
path: root/lib/mesa/src/util/u_debug_stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/util/u_debug_stack.c')
-rw-r--r--lib/mesa/src/util/u_debug_stack.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mesa/src/util/u_debug_stack.c b/lib/mesa/src/util/u_debug_stack.c
index 86bfb2fb6..87f981f98 100644
--- a/lib/mesa/src/util/u_debug_stack.c
+++ b/lib/mesa/src/util/u_debug_stack.c
@@ -1,5 +1,5 @@
/**************************************************************************
- *
+ *
* Copyright 2009 VMware, Inc.
* All Rights Reserved.
*
@@ -75,7 +75,7 @@ symbol_name_cached(unw_cursor_t *cursor, unw_proc_info_t *pip)
procname[1] = 0;
}
- if (asprintf(&name, "%s%s", procname, ret == -UNW_ENOMEM ? "..." : "") == -1)
+ if (asprintf(&name, "%s%s", procname, ret == -UNW_ENOMEM ? "..." : "") == -1)
name = "??";
entry = _mesa_hash_table_insert(symbols_hash, addr, (void*)name);
}
@@ -256,10 +256,11 @@ debug_backtrace_capture(struct debug_stack_frame *backtrace,
const void **frame_pointer = ((const void **)__builtin_frame_address(1));
#pragma GCC diagnostic pop
#elif defined(PIPE_CC_MSVC)
+ const void **frame_pointer;
__asm {
mov frame_pointer, ebp
}
- const void **frame_pointer = (const void **)frame_pointer[0];
+ frame_pointer = (const void **)frame_pointer[0];
#else
const void **frame_pointer = NULL;
#endif