mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-04 02:30:53 +00:00
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:
parent
16942d695e
commit
b5e78b59a0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user