From 181a9b7de515fb49675d56f28ee5f4d7d40ff7db Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Wed, 1 Feb 2017 02:02:13 -0500 Subject: [PATCH] Dont die on non-emulated architectures --- pwndbg/disasm/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pwndbg/disasm/__init__.py b/pwndbg/disasm/__init__.py index ec7c28533..117f78aa3 100644 --- a/pwndbg/disasm/__init__.py +++ b/pwndbg/disasm/__init__.py @@ -171,6 +171,10 @@ def near(address, instructions=1, emulate=False): insns.append(current) + # Some architecture aren't emulated yet + if pwndbg.arch.current not in pwndbg.emu.emulator.arch_to_UC: + emulate = False + # Emulate forward if we are at the current instruction. emu = None