Skip to content

Commit 95d7571

Browse files
committed
fix broken EVM debugger
1 parent f51dd88 commit 95d7571

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

qiling/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,11 +731,12 @@ def run(self, begin=None, end=None, timeout=0, count=0, code = None):
731731
self.count = count
732732

733733
# init debugger
734-
if self._debugger != False and self._debugger != None:
734+
if self._debugger != False and self._debugger != None and not self.interpreter:
735735
self._debugger = debugger_setup(self._debugger, self)
736736

737737
if self.interpreter:
738738
return self.arch.run(code)
739+
739740
elif self.baremetal:
740741
self.__enable_bin_patch()
741742
if self.count <= 0:
@@ -900,4 +901,4 @@ def emu_start(self, begin, end, timeout=0, count=0):
900901
self.uc.emu_start(begin, end, timeout, count)
901902

902903
if self._internal_exception != None:
903-
raise self._internal_exception
904+
raise self._internal_exception

0 commit comments

Comments
 (0)