mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 07:12:46 +01:00
callstack: Remove unnecessary disassembler instantiation
Decode is a static function. There's no need to allocate a disassembler instance.
This commit is contained in:
parent
c4767f3bb2
commit
0520a3b178
1 changed files with 1 additions and 2 deletions
|
@ -27,7 +27,6 @@ CallstackWidget::CallstackWidget(QWidget* parent): QDockWidget(parent)
|
||||||
|
|
||||||
void CallstackWidget::OnDebugModeEntered()
|
void CallstackWidget::OnDebugModeEntered()
|
||||||
{
|
{
|
||||||
ARM_Disasm* disasm = new ARM_Disasm();
|
|
||||||
ARM_Interface* app_core = Core::g_app_core;
|
ARM_Interface* app_core = Core::g_app_core;
|
||||||
|
|
||||||
u32 sp = app_core->GetReg(13); //stack pointer
|
u32 sp = app_core->GetReg(13); //stack pointer
|
||||||
|
@ -46,7 +45,7 @@ void CallstackWidget::OnDebugModeEntered()
|
||||||
|
|
||||||
/* TODO (mattvail) clean me, move to debugger interface */
|
/* TODO (mattvail) clean me, move to debugger interface */
|
||||||
u32 insn = Memory::Read32(call_addr);
|
u32 insn = Memory::Read32(call_addr);
|
||||||
if (disasm->Decode(insn) == OP_BL)
|
if (ARM_Disasm::Decode(insn) == OP_BL)
|
||||||
{
|
{
|
||||||
std::string name;
|
std::string name;
|
||||||
// ripped from disasm
|
// ripped from disasm
|
||||||
|
|
Loading…
Reference in a new issue