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

Method GetCurrentMethod

IDEHelper/DbgExprEvaluator.cpp:1586–1605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1584}
1585
1586DbgSubprogram* DbgExprEvaluator::GetCurrentMethod()
1587{
1588 if (mIsEmptyTarget)
1589 return NULL;
1590
1591 if (!mDebugger->mIsRunning)
1592 return NULL;
1593
1594 if (mCallStackIdx == -1)
1595 return NULL;
1596
1597 mDebugger->UpdateCallStackMethod(mCallStackIdx);
1598 if (mCallStackIdx >= (int)mDebugger->mCallStack.size())
1599 return NULL;
1600 auto callStack = mDebugger->mCallStack[mCallStackIdx];
1601 auto subProgram = callStack->mSubProgram;
1602 if (subProgram != NULL)
1603 subProgram->PopulateSubprogram();
1604 return subProgram;
1605}
1606
1607DbgType* DbgExprEvaluator::GetCurrentType()
1608{

Callers

nothing calls this directly

Calls 3

UpdateCallStackMethodMethod · 0.45
sizeMethod · 0.45
PopulateSubprogramMethod · 0.45

Tested by

no test coverage detected