| 1584 | } |
| 1585 | |
| 1586 | DbgSubprogram* 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 | |
| 1607 | DbgType* DbgExprEvaluator::GetCurrentType() |
| 1608 | { |
nothing calls this directly
no test coverage detected