Fix call stack in the core dump.

This commit is contained in:
Charles Betros 2016-06-24 23:59:51 -05:00
parent a18c034163
commit 4bd3c44060
2 changed files with 3 additions and 7 deletions

View file

@ -1,4 +1,4 @@
; Generated at 6/24/2016 1:43:55 AM
; Generated at 6/24/2016 9:50:36 PM
@ -349,7 +349,6 @@
DebugStub_SendCoreDump_Block1_End:
mov byte AL, DebugStub_Const_Ds2Vs_CoreDump
Call DebugStub_ComWriteAL
mov dword EAX, 0x0
mov dword EAX, ECX
Call DebugStub_ComWriteAX

View file

@ -383,25 +383,22 @@ function SendCoreDump {
EAX = @.CallerESP
+EAX
ECX = 36
EAX = EBP
while EAX != 0 {
EBX = EAX - 4
+EAX
ECX = ECX + 4
EAX = [EAX]
}
// Send command
AL = #Ds2Vs_CoreDump
ComWriteAL()
EAX = 0
EAX = ECX
ComWriteAX()
while ECX != 0 {
-EAX
ComWriteEAX()
ECX--
}
}