From 99823ee68d0c7966457a4381a2f960f70b461163 Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Wed, 1 Feb 2017 02:14:32 -0500 Subject: [PATCH] Catch unsupported architectures in pwndbg.arguments --- pwndbg/arguments.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pwndbg/arguments.py b/pwndbg/arguments.py index 75bf672b3..dbe3bee95 100644 --- a/pwndbg/arguments.py +++ b/pwndbg/arguments.py @@ -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