mirror of
https://github.com/yuzu-mirror/unicorn.git
synced 2026-04-06 06:53:49 +00:00
uc_hook_add(): add begin & end arguments for all hook types. also update Python binding after this change
This commit is contained in:
parent
55a6874a08
commit
a7a1dcc661
18 changed files with 96 additions and 90 deletions
|
|
@ -97,7 +97,7 @@ def test_i386(mode, code):
|
|||
mu.hook_add(UC_HOOK_INTR, hook_intr)
|
||||
|
||||
# handle SYSCALL
|
||||
mu.hook_add(UC_HOOK_INSN, hook_syscall, None, UC_X86_INS_SYSCALL)
|
||||
mu.hook_add(UC_HOOK_INSN, hook_syscall, None, 1, 0, UC_X86_INS_SYSCALL)
|
||||
|
||||
# emulate machine code in infinite time
|
||||
mu.emu_start(ADDRESS, ADDRESS + len(code))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue