1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed default rollback in minidumps

This commit is contained in:
Brian Fiete 2020-04-20 06:58:51 -07:00
parent f77ccb8994
commit b0e5991934

View file

@ -2071,13 +2071,15 @@ bool DebugTarget::RollBackStackFrame(CPURegisters* registers, addr_target* outRe
// Fall through after this, we need to process a 'return' // Fall through after this, we need to process a 'return'
bool alreadyRolledBackPC = false; bool alreadyRolledBackPC = false;
bool success = RollBackStackFrame_ExceptionDirectory(registers, outReturnAddressLoc, alreadyRolledBackPC); bool success = RollBackStackFrame_ExceptionDirectory(registers, outReturnAddressLoc, alreadyRolledBackPC);
if (!success)
{ ///TODO: Why did we break when there was a minidump? This breaks default-rollback of just a 'ret'
if (mDebugger->IsMiniDumpDebugger()) // if (!success)
{ // {
return false; // if (mDebugger->IsMiniDumpDebugger())
} // {
} // return false;
// }
// }
if (alreadyRolledBackPC) if (alreadyRolledBackPC)
return true; return true;