From e217167d1580d973be8c3e9a8964b54216e26b73 Mon Sep 17 00:00:00 2001 From: daan Date: Tue, 14 Apr 2020 20:50:23 -0700 Subject: [PATCH] add better debug hint for gdb --- src/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.c b/src/options.c index 8387a562..d676cc1f 100644 --- a/src/options.c +++ b/src/options.c @@ -475,7 +475,7 @@ void _mi_page_block_error_message(int err, const mi_page_t* page, const mi_block #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"; #else - const char* hint = ""; + const char* hint = " hint: in gdb/lldb use 'list *
' to list the source location of the 'allocated at' address.\n"; #endif mi_show_error_message("%s: block %p of size %zu allocated at 0x%p.\n%s", msg, block, size, return_addr, hint); }