Removed old EBP from frame view.

This commit is contained in:
kudzu_cp 2011-07-10 20:34:38 +00:00
parent 061515aaa3
commit 299170dd73
3 changed files with 5 additions and 3 deletions

View file

@ -316,7 +316,7 @@ namespace Cosmos.Compiler.DebugStub {
Call<DebugStub.WriteAXToComPort>();
ESI = Memory["DebugEBP", 32];
ESI.Add(4); // Dont transmit [EBP], its the saved EIP and not needed
ESI.Add(8); // Dont transmit EIP or old EBP
for (int i = 1; i <= xCount; i++) {
Call("WriteByteToComPort");
}

View file

@ -11,6 +11,7 @@ namespace BreakpointsKernel {
// If you comment out the x2 and y2 you will see 32 instead.
// How to reproduce this outside of this changeset? Cant seem to repro it here.
protected UInt32? aSize;
protected UInt32? mSize;
public virtual UInt32? Size {
get { return mSize; }

View file

@ -40,8 +40,9 @@ namespace Cosmos.Cosmos_VS_Windows {
var xSB = new StringBuilder();
xSB.AppendLine("Arguments");
for (int i = 0; i < xCount; i++) {
// We start at EBP + 4, because [EBP] is not transmitted
// ([EBP] is saved EIP, not needed)
// We start at EBP + 8, because lower is not transmitted
// [EBP] is saved EIP - not needed
// [EBP + 4] is old EBP - not needed
xSB.AppendLine("[EBP + " + (i * 4 + 4) + "] 0x" + xValues[i]);
}
tboxSourceFrame.Text = xSB.ToString();