From 904ec44a8c3e130945e80bd06f7bd99cf450743e Mon Sep 17 00:00:00 2001 From: Eladash Date: Sun, 18 Jul 2021 10:51:01 +0300 Subject: [PATCH] PPU debugger: Add instruction disasm for PPU calling history --- rpcs3/rpcs3qt/debugger_frame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/debugger_frame.cpp b/rpcs3/rpcs3qt/debugger_frame.cpp index 7c4c09557f..50577a399d 100644 --- a/rpcs3/rpcs3qt/debugger_frame.cpp +++ b/rpcs3/rpcs3qt/debugger_frame.cpp @@ -494,10 +494,13 @@ void debugger_frame::keyPressEvent(QKeyEvent* event) std::string ret; + PPUDisAsm dis_asm(cpu_disasm_mode::normal, vm::g_sudo_addr); u32 i = 0; + for (auto it = copy.rbegin(); it != copy.rend(); it++, i++) { - fmt::append(ret, "\n(%u) 0x%08x", i, *it); + dis_asm.disasm(*it); + fmt::append(ret, "\n(%u) 0x%08x: %s", i, *it, dis_asm.last_opcode); } if (ret.empty())