Final touches
This commit is contained in:
parent
765ec5ffe4
commit
5b1f7dfb69
@ -1,4 +1,6 @@
|
||||
# Unicorn Python bindings, by Nguyen Anh Quynnh <aquynh@gmail.com>
|
||||
# New and improved Unicorn Python bindings by elicn
|
||||
# based on Nguyen Anh Quynnh's work
|
||||
|
||||
from . import arm_const, arm64_const, mips_const, sparc_const, m68k_const, x86_const
|
||||
from .unicorn_const import *
|
||||
from .unicorn import Uc, ucsubclass, uc_version, uc_arch_supported, version_bind, debug, UcError, __version__
|
||||
|
@ -862,13 +862,13 @@ class Uc(RegStateManager):
|
||||
|
||||
def __hook_tcg_opcode():
|
||||
@uccallback(HOOK_TCG_OPCODE_CFUNC)
|
||||
def _hook_tcg_op_cb(handle: int, address: int, arg1: int, arg2: int, key: int):
|
||||
def __hook_tcg_op_cb(handle: int, address: int, arg1: int, arg2: int, key: int):
|
||||
callback(self, address, arg1, arg2, user_data)
|
||||
|
||||
opcode = ctypes.c_int(aux1)
|
||||
flags = ctypes.c_int(aux2)
|
||||
|
||||
return _hook_tcg_op_cb, opcode, flags
|
||||
return __hook_tcg_op_cb, opcode, flags
|
||||
|
||||
handlers: Mapping[int, Callable[[], Tuple]] = {
|
||||
uc.UC_HOOK_INTR : __hook_intr,
|
||||
@ -934,7 +934,7 @@ class Uc(RegStateManager):
|
||||
"""Query an internal Unicorn property.
|
||||
|
||||
Args:
|
||||
mode: property identifier (see: UC_QUERY_* constants)
|
||||
prop: property identifier (see: UC_QUERY_* constants)
|
||||
|
||||
Returns: property value
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user