#[after_block_exec]Expand description
(Callback) Called after execution of every basic block. If exitCode > TB_EXIT_IDX1, then the block exited early.
Callback ID: PANDA_CB_AFTER_BLOCK_EXEC
Arguments:
CPUState *env: the current CPU state
TranslationBlock *tb: the TB we just executed
uint8_t exitCode: why the block execution exited
Helper call location: cpu-exec.c
Return value:
noneCallback arguments: (&mut CPUState, &mut TranslationBlock, u8, )
ยงExample
use panda::prelude::*;
#[panda::after_block_exec]
fn callback(_: &mut CPUState, _: &mut TranslationBlock, _: u8, ) {
// do stuff
}