mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Unknown memory breakpoint crash fix
This commit is contained in:
parent
42ba7d3df5
commit
40aa9e9a8b
1 changed files with 24 additions and 16 deletions
|
@ -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);
|
||||
if (CheckConditionalBreakpoint(foundBreakpoint, subprogram, pcAddress))
|
||||
{
|
||||
|
@ -2680,6 +2687,7 @@ bool WinDebugger::DoUpdate()
|
|||
ClearCallStack();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ((mRunState == RunState_DebugEval) && (mDebugEvalThreadInfo.mThreadId == mDebuggerWaitingThread->mThreadId))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue