summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/Src/CodeWindow.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-10-15 15:43:51 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-10-15 15:43:51 +0000
commita05fbd852533e18b6809e8f6cc73c139a7ad7503 (patch)
treece433413640212c31283a2f8bc7f2f702b940a10 /Source/Core/DebuggerWX/Src/CodeWindow.cpp
parent8e44891b3a3bff35b3de97fce8fe7a7bc86ca423 (diff)
change stack shown in ppc debugger to show LR as the last item, as well as make all values point to where the code path came from, instead of the raw stack (where it will return to)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4427 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.cpp')
-rw-r--r--Source/Core/DebuggerWX/Src/CodeWindow.cpp16
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)