From 44caf3e318bf9adc889ad2f1ee61e94472ceccc6 Mon Sep 17 00:00:00 2001 From: Zachary Cutlip Date: Thu, 28 Jan 2021 13:46:53 -0800 Subject: [PATCH] fix a few other linter complaints --- voltron/plugins/debugger/dbg_lldb.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/voltron/plugins/debugger/dbg_lldb.py b/voltron/plugins/debugger/dbg_lldb.py index 75c7d1c..e862a43 100644 --- a/voltron/plugins/debugger/dbg_lldb.py +++ b/voltron/plugins/debugger/dbg_lldb.py @@ -331,7 +331,7 @@ if HAVE_LLDB: `count` is the number of instructions to disassemble. """ # make sure we have an address - if address == None: + if address is None: pc_name, address = self.program_counter(target_id=target_id) # disassemble @@ -464,12 +464,12 @@ if HAVE_LLDB: locations = [] for j in range(0, b.GetNumLocations()): - l = b.GetLocationAtIndex(j) + loc = b.GetLocationAtIndex(j) s.Clear() - l.GetAddress().GetDescription(s) + loc.GetAddress().GetDescription(s) desc = s.GetData() locations.append({ - 'address': l.GetLoadAddress(), + 'address': loc.GetLoadAddress(), 'name': desc }) @@ -541,7 +541,6 @@ if HAVE_LLDB: # register the invocation as a command script handler thing self.host.HandleCommand("command script add -f voltron.commands.{} {}".format(name, name)) - class LLDBCommand(DebuggerCommand): """ Debugger command class for LLDB @@ -587,7 +586,6 @@ if HAVE_LLDB: self.adaptor.command('target stop-hook delete {}'.format(self.hook_idx if self.hook_idx else '')) self.registered = False - class LLDBAdaptorPlugin(DebuggerAdaptorPlugin): host = 'lldb' adaptor_class = LLDBAdaptor