| 1530 | } |
| 1531 | |
| 1532 | CPUStackFrame* 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 | |
| 1552 | CPURegisters* DbgExprEvaluator::GetRegisters() |
| 1553 | { |
nothing calls this directly
no test coverage detected