mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Silence unused variable warning by printing the variables value.
mysys/stacktrace.c: Print stack bottom and thread stack values as they might be useful.
This commit is contained in:
@ -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)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user