mirror of https://github.com/RPCS3/rpcs3.git
PPU Debugger: Fixup for syscall arguments (#9932)
This commit is contained in:
parent
4c7fc8a70a
commit
a9b0d25c01
|
@ -607,6 +607,9 @@ std::string ppu_thread::dump_regs() const
|
||||||
{
|
{
|
||||||
auto reg = gpr[i];
|
auto reg = gpr[i];
|
||||||
|
|
||||||
|
// Fixup for syscall arguments
|
||||||
|
if (current_function && i >= 3 && i <= 6) reg = syscall_args[i - 3];
|
||||||
|
|
||||||
fmt::append(ret, "r%d%s: 0x%-8llx", i, i <= 9 ? " " : "", reg);
|
fmt::append(ret, "r%d%s: 0x%-8llx", i, i <= 9 ? " " : "", reg);
|
||||||
|
|
||||||
constexpr u32 max_str_len = 32;
|
constexpr u32 max_str_len = 32;
|
||||||
|
@ -834,8 +837,8 @@ std::string ppu_thread::dump_misc() const
|
||||||
ret += '\n';
|
ret += '\n';
|
||||||
|
|
||||||
for (u32 i = 3; i <= 6; i++)
|
for (u32 i = 3; i <= 6; i++)
|
||||||
if (gpr[i] != syscall_args[i - 3])
|
if (u64 v = gpr[i]; v != syscall_args[i - 3])
|
||||||
fmt::append(ret, " ** r%d: 0x%llx\n", i, syscall_args[i - 3]);
|
fmt::append(ret, " ** r%d: 0x%llx\n", i, v);
|
||||||
}
|
}
|
||||||
else if (is_paused())
|
else if (is_paused())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue