From b145355b76272b839c3af4f96493bc92511c42b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Fri, 16 Dec 2022 08:46:17 +0100 Subject: [PATCH] The debugger now indicates if the printed information is from the current stack frame or from another one. [GB.DEBUG] * NEW: The debugger now indicates if the printed information is from the current stack frame or from another one. --- main/lib/debug/debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/lib/debug/debug.c b/main/lib/debug/debug.c index eb1abe803..557dfa7bb 100644 --- a/main/lib/debug/debug.c +++ b/main/lib/debug/debug.c @@ -702,14 +702,14 @@ void DEBUG_backtrace(FILE *out) } -static void debug_info() +static void debug_info(bool frame) { const char *p; char c; int i; DEBUG_WATCH *watch; - fprintf(_out, "*[%d]\t", getpid()); + fprintf(_out, "%c[%d]\t", frame ? '@' : '*', getpid()); if (_error) { @@ -798,7 +798,7 @@ static void command_frame(char *cmd) } set_info(context); - debug_info(); + debug_info(cmd != NULL); }