mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 00:17:16 +00:00
Debugger: When MODE_STEPPING (eg. g or gg mode), prevent ESC from exiting back to the debugger. F7 or Pause keys can still be used. (#217)
This commit is contained in:
+15
-12
@@ -8604,6 +8604,18 @@ void DebugContinueStepping ()
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
void DebugStopStepping(void)
|
||||
{
|
||||
_ASSERT(g_nAppMode == MODE_STEPPING);
|
||||
|
||||
if (g_nAppMode != MODE_STEPPING)
|
||||
return;
|
||||
|
||||
g_nDebugSteps = 0; // On next DebugContinueStepping(), stop single-stepping and transition to MODE_DEBUG
|
||||
ClearTempBreakpoints();
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
void DebugDestroy ()
|
||||
{
|
||||
@@ -8990,19 +9002,11 @@ void DebugInitialize ()
|
||||
CmdMOTD(0);
|
||||
}
|
||||
|
||||
// wparam = 0x16
|
||||
// lparam = 0x002f 0x0001
|
||||
// insert = VK_INSERT
|
||||
|
||||
// Add character to the input line
|
||||
//===========================================================================
|
||||
void DebuggerInputConsoleChar( TCHAR ch )
|
||||
{
|
||||
if ((g_nAppMode == MODE_STEPPING) && (ch == DEBUG_STEPPING_EXIT_KEY))
|
||||
{
|
||||
g_nDebugSteps = 0; // On next DebugContinueStepping(), stop single-stepping and transition to MODE_DEBUG
|
||||
ClearTempBreakpoints();
|
||||
}
|
||||
_ASSERT(g_nAppMode == MODE_DEBUG);
|
||||
|
||||
if (g_nAppMode != MODE_DEBUG)
|
||||
return;
|
||||
@@ -9194,7 +9198,6 @@ void ToggleFullScreenConsole()
|
||||
|
||||
//===========================================================================
|
||||
void DebuggerProcessKey( int keycode )
|
||||
//void DebugProcessCommand (int keycode)
|
||||
{
|
||||
if (g_nAppMode != MODE_DEBUG)
|
||||
return;
|
||||
@@ -9293,10 +9296,10 @@ void DebuggerProcessKey( int keycode )
|
||||
}
|
||||
else
|
||||
{
|
||||
g_nConsoleInputSkip = 0; // VK_OEM_3; // don't pass to DebugProcessChar()
|
||||
g_nConsoleInputSkip = 0; // VK_OEM_3;
|
||||
DebuggerInputConsoleChar( '~' );
|
||||
}
|
||||
g_nConsoleInputSkip = '~'; // VK_OEM_3; // don't pass to DebugProcessChar()
|
||||
g_nConsoleInputSkip = '~'; // VK_OEM_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user