From d3744b60535c022cccd90df534e8eb64625f61c2 Mon Sep 17 00:00:00 2001 From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498> Date: Fri, 25 Feb 2011 02:53:36 +0000 Subject: [PATCH] --- .../Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs | 12 ++++++++++++ .../AD7.Impl/AD7Process.cs | 12 ++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/source2/Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs b/source2/Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs index 4b43d8044..5c2e9a11d 100644 --- a/source2/Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs +++ b/source2/Compiler/Cosmos.Compiler.DebugStub/DebugStub.cs @@ -404,6 +404,18 @@ namespace Cosmos.Compiler.DebugStub { Jump("DebugStub_Break_Exit"); Label = "DebugStub_Break_StepInto_After"; + AL.Compare(Command.StepOver); + JumpIf(Flags.NotEqual, "DebugStub_Break_StepOver_After"); + Memory["DebugBreakOnNextTrace", 32] = 1; + Jump("DebugStub_Break_Exit"); + Label = "DebugStub_Break_StepOver_After"; + + AL.Compare(Command.StepOut); + JumpIf(Flags.NotEqual, "DebugStub_Break_StepOut_After"); + Memory["DebugBreakOnNextTrace", 32] = 1; + Jump("DebugStub_Break_Exit"); + Label = "DebugStub_Break_StepOut_After"; + // Loop around and wait for another command Jump("DebugStub_WaitCmd"); diff --git a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs index f971977d0..3f0705ee7 100644 --- a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs +++ b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs @@ -445,14 +445,14 @@ namespace Cosmos.Debug.VSDebugEngine { mDbgConnector.SendCommand(Command.StepInto); } else if (aKind == enum_STEPKIND.STEP_OVER) { // F10 - //mDbgConnector.SendCommand(Command.StepOver); - MessageBox.Show("F10 Step Over is not supported yet."); - mCallback.OnStepComplete(); // Have to call this otherwise VS gets "stuck" + mDbgConnector.SendCommand(Command.StepOver); + //MessageBox.Show("F10 Step Over is not supported yet."); + //mCallback.OnStepComplete(); // Have to call this otherwise VS gets "stuck" } else if (aKind == enum_STEPKIND.STEP_OUT) { // Shift-F11 - //mDbgConnector.SendCommand(Command.StepOut); - MessageBox.Show("Shift-F11 Step Out is not supported yet."); - mCallback.OnStepComplete(); // Have to call this otherwise VS gets "stuck" + mDbgConnector.SendCommand(Command.StepOut); + //MessageBox.Show("Shift-F11 Step Out is not supported yet."); + //mCallback.OnStepComplete(); // Have to call this otherwise VS gets "stuck" } else if (aKind == enum_STEPKIND.STEP_BACKWARDS) { // STEP_BACKWARDS - Supported at all by VS?