From 495f08d665d2c7616fddcf17b70895dd971e1e06 Mon Sep 17 00:00:00 2001 From: Max Logaev Date: Mon, 12 Jan 2026 23:46:11 +0300 Subject: [PATCH] mtdbg: Fixed check read mem error Signed-off-by: Max Logaev --- programs/develop/mtdbg/mtdbg.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/develop/mtdbg/mtdbg.asm b/programs/develop/mtdbg/mtdbg.asm index 5d5c23763..f42ccf013 100644 --- a/programs/develop/mtdbg/mtdbg.asm +++ b/programs/develop/mtdbg/mtdbg.asm @@ -1200,7 +1200,8 @@ OnBacktrace: .next: mcall SF_DEBUG, SSF_READ_MEMORY, [debuggee_pid], sizeof.STACK_FRAME, ebp cmp eax, -1 - jz .done + mov esi, read_mem_err + jz .exit ; Save stack_frame_dump push edi @@ -1259,7 +1260,7 @@ OnBacktrace: .done: mov esi, newline - + .exit: call put_message pop ebp