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:
@ -460,6 +460,7 @@ class Uc(object):
|
|||||||
|
|
||||||
# emulate from @begin, and stop when reaching address @until
|
# emulate from @begin, and stop when reaching address @until
|
||||||
def emu_start(self, begin, until, timeout=0, count=0):
|
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)
|
status = _uc.uc_emu_start(self._uch, begin, until, timeout, count)
|
||||||
if status != uc.UC_ERR_OK:
|
if status != uc.UC_ERR_OK:
|
||||||
raise UcError(status)
|
raise UcError(status)
|
||||||
|
Reference in New Issue
Block a user