[−][src]Attribute Macro panda::after_insn_translate
#[after_insn_translate]
(Callback) Called after the translation of each instruction.
Callback ID: PANDA_CB_AFTER_INSN_TRANSLATE Arguments: CPUState *env: the current CPU state target_ptr_t pc: the next guest PC we've translated Helper call location: panda/target/ARCH/translate.c Return value: true if PANDA should insert instrumentation into the generated code, false otherwise Notes: See `insn_translate`, callbacks are registered via PANDA_CB_AFTER_INSN_EXEC
Callback arguments: (&mut CPUState
, target_ptr_t
, )
Example
use panda::prelude::*; #[panda::after_insn_translate] fn callback(_: &mut CPUState, _: target_ptr_t, ) { // do stuff }