diff options
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindow.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.cpp b/Source/Core/DebuggerWX/Src/CodeWindow.cpp index dadc22fafb..b9bbfe65c8 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindow.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindow.cpp @@ -393,18 +393,16 @@ void CCodeWindow::UpdateCallstack() std::vector<Dolphin_Debugger::CallstackEntry> stack; - if (Dolphin_Debugger::GetCallstack(stack)) + bool ret = Dolphin_Debugger::GetCallstack(stack); + + for (size_t i = 0; i < stack.size(); i++) { - for (size_t i = 0; i < stack.size(); i++) - { - int idx = callstack->Append(wxString::FromAscii(stack[i].Name.c_str())); - callstack->SetClientData(idx, (void*)(u64)stack[i].vAddress); - } + int idx = callstack->Append(wxString::FromAscii(stack[i].Name.c_str())); + callstack->SetClientData(idx, (void*)(u64)stack[i].vAddress); } - else - { + + if (!ret) callstack->Append(wxString::FromAscii("invalid callstack")); - } } void CCodeWindow::CreateGUIControls(const SCoreStartupParameter& _LocalCoreStartupParameter) |
