mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-10 01:09:31 +03:00
add better debug hint for gdb
This commit is contained in:
parent
7c058f207c
commit
e217167d15
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ void _mi_page_block_error_message(int err, const mi_page_t* page, const mi_block
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
const char* hint = " hint: paste the 'allocated at' address in the disassembly window in the debugger to find the source location.\n";
|
const char* hint = " hint: paste the 'allocated at' address in the disassembly window in the debugger to find the source location.\n";
|
||||||
#else
|
#else
|
||||||
const char* hint = "";
|
const char* hint = " hint: in gdb/lldb use 'list *<address>' to list the source location of the 'allocated at' address.\n";
|
||||||
#endif
|
#endif
|
||||||
mi_show_error_message("%s: block %p of size %zu allocated at 0x%p.\n%s", msg, block, size, return_addr, hint);
|
mi_show_error_message("%s: block %p of size %zu allocated at 0x%p.\n%s", msg, block, size, return_addr, hint);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue