libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
CALLBACK

[python api] All information about the CALLBACK Python namespace.

Description


The CALLBACK namespace contains all kinds of callbacks.

Example

>>> addCallback(CALLBACK.GET_CONCRETE_MEMORY_VALUE, your_function)

Python API - Items of the CALLBACK namespace


  • CALLBACK.GET_CONCRETE_MEMORY_VALUE
    The callback takes as arguments a TritonContext and a MemoryAccess. Callbacks will be called each time that the Triton library will need to LOAD a concrete memory value. The callback must return nothing.
  • CALLBACK.GET_CONCRETE_REGISTER_VALUE
    The callback takes as arguments a TritonContext and a Register. Callbacks will be called each time that the Triton library will need to GET a concrete register value. The callback must return nothing.
  • CALLBACK.SET_CONCRETE_MEMORY_VALUE
    The callback takes as arguments a TritonContext, a MemoryAccess and an integer. Callbacks will be called each time that the Triton library will need to STORE a concrete memory value. The callback must return nothing.
  • CALLBACK.SET_CONCRETE_REGISTER_VALUE
    The callback takes as arguments a TritonContext, Register and an integer. Callbacks will be called each time that the Triton library will need to PUT a concrete register value. The callback must return nothing.
  • CALLBACK.SYMBOLIC_SIMPLIFICATION
    Defines a callback which will be called before all symbolic assignments. The callback takes as arguments a TritonContext and an AstNode. This callback must return a valid AstNode. The returned node is used as assignment. See also the page about SMT simplification passes.