Skip to content

Commit 5b86c25

Browse files
committed
Remove 'end' field in Qiling
1 parent 96c2c6c commit 5b86c25

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

qiling/core.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,7 @@ def run(self, begin=None, end=None, timeout=0, count=0, code = None):
706706
self.entry_point = begin
707707
self.exit_point = end
708708
self.timeout = timeout
709-
self.count = count
710-
self.end = end
709+
self.count = count
711710

712711
if self.archtype in QL_ARCH_NONEOS:
713712
if code == None:
@@ -717,9 +716,9 @@ def run(self, begin=None, end=None, timeout=0, count=0, code = None):
717716

718717
if self.archtype in QL_ARCH_HARDWARE:
719718
self.__enable_bin_patch()
720-
if self.count == 0:
719+
if self.count <= 0:
721720
self.count = -1
722-
return self.arch.run(count=self.count, end=self.end)
721+
return self.arch.run(count=self.count, end=self.exit_point)
723722

724723
self.write_exit_trap()
725724

0 commit comments

Comments
 (0)