Commit 1d00bbe0 authored by Davi Arnaut's avatar Davi Arnaut

Silence unused variable warning by printing the variables value.

mysys/stacktrace.c:
  Print stack bottom and thread stack values as they might be useful.
parent 666cc691
...@@ -109,6 +109,8 @@ void my_print_stacktrace(uchar* stack_bottom, ulong thread_stack) ...@@ -109,6 +109,8 @@ void my_print_stacktrace(uchar* stack_bottom, ulong thread_stack)
void *addrs[128]; void *addrs[128];
char **strings= NULL; char **strings= NULL;
int n = backtrace(addrs, array_elements(addrs)); int n = backtrace(addrs, array_elements(addrs));
fprintf(stderr, "stack_bottom = %p thread_stack 0x%lx\n",
stack_bottom, thread_stack);
#if BACKTRACE_DEMANGLE #if BACKTRACE_DEMANGLE
if ((strings= backtrace_symbols(addrs, n))) if ((strings= backtrace_symbols(addrs, n)))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment