mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01: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:
parent
666cc6914b
commit
1d00bbe01b
1 changed files with 2 additions and 0 deletions
|
@ -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)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue