1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Unknown memory breakpoint crash fix

This commit is contained in:
Brian Fiete 2025-04-05 12:01:53 -04:00
parent 42ba7d3df5
commit 40aa9e9a8b

View file

@ -2660,8 +2660,15 @@ bool WinDebugger::DoUpdate()
} }
} }
BF_ASSERT(foundBreakpoint != NULL); if (foundBreakpoint == NULL)
{
BfLogDbg("Unknown memory breakpoint hit %p\n", pcAddress);
mDebugManager->mOutMessages.push_back(StrFormat("memoryBreak %s", EncodeDataPtr(pcAddress, false).c_str()));
mRunState = RunState_Paused;
break;
}
else
{
DbgSubprogram* subprogram = mDebugTarget->FindSubProgram(pcAddress); DbgSubprogram* subprogram = mDebugTarget->FindSubProgram(pcAddress);
if (CheckConditionalBreakpoint(foundBreakpoint, subprogram, pcAddress)) if (CheckConditionalBreakpoint(foundBreakpoint, subprogram, pcAddress))
{ {
@ -2680,6 +2687,7 @@ bool WinDebugger::DoUpdate()
ClearCallStack(); ClearCallStack();
break; break;
} }
}
if ((mRunState == RunState_DebugEval) && (mDebugEvalThreadInfo.mThreadId == mDebuggerWaitingThread->mThreadId)) if ((mRunState == RunState_DebugEval) && (mDebugEvalThreadInfo.mThreadId == mDebuggerWaitingThread->mThreadId))
{ {