From b5e78b59a09756ced4d03b149bc480b363bdcbe1 Mon Sep 17 00:00:00 2001 From: tomcw Date: Wed, 24 May 2017 22:40:22 +0100 Subject: [PATCH] Debugger: Fix for 'tf' (trace-file) cmd, so that exiting debugger with F7 doesn't close the trace file and continues in MODE_STEPPING --- source/Debugger/Debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Debugger/Debug.cpp b/source/Debugger/Debug.cpp index c7706abd..04028047 100644 --- a/source/Debugger/Debug.cpp +++ b/source/Debugger/Debug.cpp @@ -8461,13 +8461,13 @@ void DebugBegin () //=========================================================================== void DebugExitDebugger () { - if (g_nBreakpoints == 0) + if (g_nBreakpoints == 0 && g_hTraceFile == NULL) { DebugEnd(); return; } - // Still have some BPs set, so continue single-stepping + // Still have some BPs set or tracing to file, so continue single-stepping if (!g_bLastGoCmdWasFullSpeed) CmdGoNormalSpeed(0);