summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/callstack.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2015-03-30 11:22:52 -0400
committerGravatar Lioncash2015-03-30 11:25:02 -0400
commit0520a3b178405992cc60e914b38d278ee9afbdc9 (patch)
treece01b508adbbfc268f63571c498460660e05c323 /src/citra_qt/debugger/callstack.cpp
parentMerge pull request #672 from purpasmart96/citra_moar_app_mem (diff)
downloadyuzu-0520a3b178405992cc60e914b38d278ee9afbdc9.tar.gz
yuzu-0520a3b178405992cc60e914b38d278ee9afbdc9.tar.xz
yuzu-0520a3b178405992cc60e914b38d278ee9afbdc9.zip
callstack: Remove unnecessary disassembler instantiation
Decode is a static function. There's no need to allocate a disassembler instance.
Diffstat (limited to 'src/citra_qt/debugger/callstack.cpp')
-rw-r--r--src/citra_qt/debugger/callstack.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/citra_qt/debugger/callstack.cpp b/src/citra_qt/debugger/callstack.cpp
index 9bb22ca2e..3742c2d38 100644
--- a/src/citra_qt/debugger/callstack.cpp
+++ b/src/citra_qt/debugger/callstack.cpp
@@ -27,7 +27,6 @@ CallstackWidget::CallstackWidget(QWidget* parent): QDockWidget(parent)
27 27
28void CallstackWidget::OnDebugModeEntered() 28void CallstackWidget::OnDebugModeEntered()
29{ 29{
30 ARM_Disasm* disasm = new ARM_Disasm();
31 ARM_Interface* app_core = Core::g_app_core; 30 ARM_Interface* app_core = Core::g_app_core;
32 31
33 u32 sp = app_core->GetReg(13); //stack pointer 32 u32 sp = app_core->GetReg(13); //stack pointer
@@ -46,7 +45,7 @@ void CallstackWidget::OnDebugModeEntered()
46 45
47 /* TODO (mattvail) clean me, move to debugger interface */ 46 /* TODO (mattvail) clean me, move to debugger interface */
48 u32 insn = Memory::Read32(call_addr); 47 u32 insn = Memory::Read32(call_addr);
49 if (disasm->Decode(insn) == OP_BL) 48 if (ARM_Disasm::Decode(insn) == OP_BL)
50 { 49 {
51 std::string name; 50 std::string name;
52 // ripped from disasm 51 // ripped from disasm