diff options
author | Davi Arnaut <davi@mysql.com> | 2008-06-19 13:00:53 -0300 |
---|---|---|
committer | Davi Arnaut <davi@mysql.com> | 2008-06-19 13:00:53 -0300 |
commit | 1d00bbe01bcd0bdc74961a225c78eb24e3e1b77b (patch) | |
tree | 9ea95d4d4fbaf278d3c268b95335d23e01371805 /mysys | |
parent | 666cc6914bdf3e2f3076bdabb9ce19ebe87eb883 (diff) | |
download | mariadb-git-1d00bbe01bcd0bdc74961a225c78eb24e3e1b77b.tar.gz |
Silence unused variable warning by printing the variables value.
mysys/stacktrace.c:
Print stack bottom and thread stack values as they might be useful.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/stacktrace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/stacktrace.c b/mysys/stacktrace.c index 9ae3d88ef50..5b941bbd7d6 100644 --- a/mysys/stacktrace.c +++ b/mysys/stacktrace.c @@ -109,6 +109,8 @@ void my_print_stacktrace(uchar* stack_bottom, ulong thread_stack) void *addrs[128]; char **strings= NULL; 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 ((strings= backtrace_symbols(addrs, n))) { |