Skip to content

Commit

Permalink
Catch unsupported architectures in pwndbg.arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
zachriggle committed Feb 1, 2017
1 parent f6fc554 commit 99823ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pwndbg/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ def get(instruction):
if instruction.address != pwndbg.regs.pc:
return []

abi = pwndbg.abi.ABI.default()
try:
abi = pwndbg.abi.ABI.default()
except KeyError:
return []

if CS_GRP_CALL in instruction.groups:
# Not sure of any OS which allows multiple operands on
Expand Down

0 comments on commit 99823ee

Please sign in to comment.