MCPcopy Create free account
hub / github.com/beefytech/Beef / GetStackFrame

Method GetStackFrame

IDEHelper/DbgExprEvaluator.cpp:1532–1550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1530}
1531
1532CPUStackFrame* DbgExprEvaluator::GetStackFrame()
1533{
1534 if (mIsEmptyTarget)
1535 return NULL;
1536
1537 static CPUStackFrame emptyStackFrame;
1538 if (mCallStackIdx == -1)
1539 return &emptyStackFrame;
1540
1541 if (mDebugger->mRunState == RunState_NotStarted)
1542 return &emptyStackFrame;
1543
1544 if (mDebugger->mCallStack.size() == 0)
1545 mDebugger->UpdateCallStack();
1546 if (mCallStackIdx >= (int)mDebugger->mCallStack.size())
1547 return &emptyStackFrame;
1548
1549 return mDebugger->mCallStack[mCallStackIdx];
1550}
1551
1552CPURegisters* DbgExprEvaluator::GetRegisters()
1553{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
UpdateCallStackMethod · 0.45

Tested by

no test coverage detected