Make argument printing work for i386

pull/14/head
Zach Riggle 11 years ago
parent a1631093fa
commit b376025f2b

@ -116,7 +116,7 @@ REGS = {
}
def argname(n):
regs = REGS[pwndbg.arch.current]
regs = REGS.get(pwndbg.arch.current, [])
if n < len(regs):
return regs[n]
@ -128,7 +128,7 @@ def argument(n):
Returns the nth argument, as if $pc were a 'call' or 'bl' type
instruction.
"""
regs = REGS[pwndbg.arch.current]
regs = REGS.get(pwndbg.arch.current, [])
if n < len(regs):
return getattr(pwndbg.regs, regs[n])

Loading…
Cancel
Save