m1n1.xnutools: Update decode_debugger_state() for 12.0

We need to find a better way of doing this...

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-09-15 23:26:45 +09:00
parent 184a516367
commit e06e58e864

View file

@ -31,7 +31,7 @@ def decode_debugger_state(u, ctx):
assert addr != 0
return iface.readmem(addr, size)
p_state = p.hv_translate(ctx.regs[23], False, False)
p_state = p.hv_translate(ctx.regs[25], False, False)
assert p_state != 0
di = iface.readstruct(p_state, DebuggerState)
print(di)