Merge pull request #1537 from gerph/clear-pending-hook-exception-before-emulation

Clear Python pending hook exception before we enter the emulation.
This commit is contained in:
lazymio 2022-01-15 22:13:24 +01:00 committed by GitHub
commit 06be6fdc24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -460,6 +460,7 @@ class Uc(object):
# emulate from @begin, and stop when reaching address @until
def emu_start(self, begin, until, timeout=0, count=0):
self._hook_exception = None
status = _uc.uc_emu_start(self._uch, begin, until, timeout, count)
if status != uc.UC_ERR_OK:
raise UcError(status)