mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
stepping works now
This commit is contained in:
parent
2c37375906
commit
7d99174bba
2 changed files with 8 additions and 0 deletions
|
|
@ -498,6 +498,7 @@ namespace Cosmos.Debug.VSDebugEngine
|
||||||
}
|
}
|
||||||
|
|
||||||
// m_debuggedProcess.Terminate();
|
// m_debuggedProcess.Terminate();
|
||||||
|
mProcess.Terminate();
|
||||||
m_engineCallback.OnProcessExit(0);
|
m_engineCallback.OnProcessExit(0);
|
||||||
|
|
||||||
return VSConstants.S_OK;
|
return VSConstants.S_OK;
|
||||||
|
|
@ -703,6 +704,7 @@ namespace Cosmos.Debug.VSDebugEngine
|
||||||
public int Step(IDebugThread2 pThread, uint sk, uint Step)
|
public int Step(IDebugThread2 pThread, uint sk, uint Step)
|
||||||
{
|
{
|
||||||
Trace.WriteLine(new StackTrace(false).GetFrame(0).GetMethod().GetFullName());
|
Trace.WriteLine(new StackTrace(false).GetFrame(0).GetMethod().GetFullName());
|
||||||
|
mProcess.Step();
|
||||||
|
|
||||||
return VSConstants.S_OK;
|
return VSConstants.S_OK;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -222,6 +222,7 @@ namespace Cosmos.Debug.VSDebugEngine
|
||||||
|
|
||||||
public int Terminate()
|
public int Terminate()
|
||||||
{
|
{
|
||||||
|
mProcess.Kill();
|
||||||
return VSConstants.S_OK;
|
return VSConstants.S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -253,5 +254,10 @@ namespace Cosmos.Debug.VSDebugEngine
|
||||||
mCurrentAddress = null;
|
mCurrentAddress = null;
|
||||||
mDebugEngine.DebugConnector.SendCommand((byte)Command.Break);
|
mDebugEngine.DebugConnector.SendCommand((byte)Command.Break);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal void Step()
|
||||||
|
{
|
||||||
|
mDebugEngine.DebugConnector.SendCommand((byte)Command.Step);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue