From f1ae7ba55917e3b4f1f956b8c66e14e82eaec4ce Mon Sep 17 00:00:00 2001 From: James Churchill Date: Thu, 13 Feb 2020 15:46:23 +1100 Subject: [PATCH] Fix gdb segfaults due to bypassed locking --- voltron/dbg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/voltron/dbg.py b/voltron/dbg.py index ceb1939..4d92f5b 100644 --- a/voltron/dbg.py +++ b/voltron/dbg.py @@ -124,7 +124,7 @@ class DebuggerAdaptor(object): `target_id` is a target ID (or None for the first target) """ try: - target = self._target(target_id=target_id) + target = self.target(target_id=target_id) except Exception as e: log.error("Exception checking if target exists: {} {}".format(type(e), e)) return False @@ -138,7 +138,7 @@ class DebuggerAdaptor(object): `target_id` is a target ID (or None for the first target) """ try: - target = self._target(target_id=target_id) + target = self.target(target_id=target_id) except: return False return target['state'] != "invalid" @@ -151,7 +151,7 @@ class DebuggerAdaptor(object): `target_id` is a target ID (or None for the first target) """ try: - target = self._target(target_id=target_id) + target = self.target(target_id=target_id) except: raise NoSuchTargetException() return target['state'] == "running" @@ -204,7 +204,7 @@ class DebuggerAdaptor(object): """ Disassemble with capstone. """ - target = self._target(target_id) + target = self.target(target_id) if not address: pc_name, address = self.pc()