1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Evaluation fixes while program is running

This commit is contained in:
Brian Fiete 2023-01-23 06:56:54 -05:00
parent b9647d2a08
commit a080d260ab
2 changed files with 6 additions and 2 deletions

View file

@ -4022,7 +4022,7 @@ DbgTypedValue DbgExprEvaluator::LookupIdentifier(BfAstNode* identifierNode, bool
if (mStackSearch->mSearchStr != "*") if (mStackSearch->mSearchStr != "*")
{ {
mDebugger->UpdateCallStackMethod(mCallStackIdx); mDebugger->UpdateCallStackMethod(mCallStackIdx);
if (stackFrame->mSubProgram != NULL) if ((stackFrame != NULL) && (stackFrame->mSubProgram != NULL))
{ {
int strLen = strlen(stackFrame->mSubProgram->mName); int strLen = strlen(stackFrame->mSubProgram->mName);
if (strLen >= findStr.mLength) if (strLen >= findStr.mLength)

View file

@ -11035,7 +11035,11 @@ void WinDebugger::UpdateCallStack(bool slowEarlyOut)
if (!mIsPartialCallStack) if (!mIsPartialCallStack)
return; return;
BF_ASSERT(!IsInRunState()); if (mActiveThread == NULL)
return;
if (IsInRunState())
return;
uint32 tickStart = BFTickCount(); uint32 tickStart = BFTickCount();