From 7d99174bba322d91bcacf5f66dfa8010e1ebecef Mon Sep 17 00:00:00 2001 From: mterwoord_cp <7cd3fd84a0151ea055c2f79e4d2eef9576fe9afesxUZAwxD> Date: Sun, 24 Jan 2010 10:56:47 +0000 Subject: [PATCH] stepping works now --- .../Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Engine.cs | 2 ++ .../Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Engine.cs b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Engine.cs index 2a5ee2bfe..e70a62cf8 100644 --- a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Engine.cs +++ b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Engine.cs @@ -498,6 +498,7 @@ namespace Cosmos.Debug.VSDebugEngine } // m_debuggedProcess.Terminate(); + mProcess.Terminate(); m_engineCallback.OnProcessExit(0); return VSConstants.S_OK; @@ -703,6 +704,7 @@ namespace Cosmos.Debug.VSDebugEngine public int Step(IDebugThread2 pThread, uint sk, uint Step) { Trace.WriteLine(new StackTrace(false).GetFrame(0).GetMethod().GetFullName()); + mProcess.Step(); return VSConstants.S_OK; } diff --git a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs index 31056878a..931b99bac 100644 --- a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs +++ b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs @@ -222,6 +222,7 @@ namespace Cosmos.Debug.VSDebugEngine public int Terminate() { + mProcess.Kill(); return VSConstants.S_OK; } @@ -253,5 +254,10 @@ namespace Cosmos.Debug.VSDebugEngine mCurrentAddress = null; mDebugEngine.DebugConnector.SendCommand((byte)Command.Break); } + + internal void Step() + { + mDebugEngine.DebugConnector.SendCommand((byte)Command.Step); + } } } \ No newline at end of file