From 076f13d9c74bfb7ee483439856bfacf2eb7c5235 Mon Sep 17 00:00:00 2001 From: Jonas Meyer Date: Fri, 7 Feb 2020 14:45:10 +0100 Subject: [PATCH] fix xrange when using python 3 in lldb. fixes disassembly & registers view --- voltron/plugins/debugger/dbg_lldb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/voltron/plugins/debugger/dbg_lldb.py b/voltron/plugins/debugger/dbg_lldb.py index 4dd8ec8e..93292abc 100644 --- a/voltron/plugins/debugger/dbg_lldb.py +++ b/voltron/plugins/debugger/dbg_lldb.py @@ -16,6 +16,10 @@ except ImportError: HAVE_LLDB = False +if not hasattr(__builtins__, "xrange"): + xrange = range + + log = logging.getLogger('debugger') MAX_DEREF = 16