Debugger: Fix for 'tf' (trace-file) cmd, so that exiting debugger with F7 doesn't close the trace file and continues in MODE_STEPPING

This commit is contained in:
tomcw 2017-05-24 22:40:22 +01:00
parent 16942d695e
commit b5e78b59a0

View File

@ -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);