| 838 | } |
| 839 | |
| 840 | CeFrame* CeDebugger::GetFrame(int callStackIdx) |
| 841 | { |
| 842 | auto ceContext = mCeMachine->mCurContext; |
| 843 | if (ceContext == NULL) |
| 844 | return NULL; |
| 845 | |
| 846 | if ((callStackIdx == -1) && (!ceContext->mCallStack.IsEmpty())) |
| 847 | return &ceContext->mCallStack.back(); |
| 848 | |
| 849 | if (callStackIdx < mDbgCallStack.mSize) |
| 850 | { |
| 851 | int frameIdx = mDbgCallStack[callStackIdx].mFrameIdx; |
| 852 | if (frameIdx < 0) |
| 853 | return NULL; |
| 854 | auto ceFrame = &ceContext->mCallStack[mDbgCallStack[callStackIdx].mFrameIdx]; |
| 855 | return ceFrame; |
| 856 | } |
| 857 | return NULL; |
| 858 | } |
| 859 | |
| 860 | String CeDebugger::GetAutocompleteOutput(BfAutoComplete& autoComplete) |
| 861 | { |
no test coverage detected