Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
static void | interrupt_free (HtUPKv *kv) |
RZ_API void | rz_analysis_esil_interrupts_init (RzAnalysisEsil *esil) |
RZ_API RzAnalysisEsilInterrupt * | rz_analysis_esil_interrupt_new (RzAnalysisEsil *esil, ut32 src_id, RzAnalysisEsilInterruptHandler *ih) |
RZ_API void | rz_analysis_esil_interrupt_free (RzAnalysisEsil *esil, RzAnalysisEsilInterrupt *intr) |
RZ_API bool | rz_analysis_esil_set_interrupt (RzAnalysisEsil *esil, RzAnalysisEsilInterrupt *intr) |
RZ_API int | rz_analysis_esil_fire_interrupt (RzAnalysisEsil *esil, ut32 intr_num) |
RZ_API bool | rz_analysis_esil_load_interrupts (RzAnalysisEsil *esil, RzAnalysisEsilInterruptHandler *handlers[], ut32 src_id) |
RZ_API bool | rz_analysis_esil_load_interrupts_from_lib (RzAnalysisEsil *esil, const char *path) |
RZ_API void | rz_analysis_esil_interrupts_fini (RzAnalysisEsil *esil) |
|
static |
Definition at line 8 of file esil_interrupt.c.
References i, and rz_analysis_esil_interrupt_free().
Referenced by rz_analysis_esil_interrupts_init().
RZ_API int rz_analysis_esil_fire_interrupt | ( | RzAnalysisEsil * | esil, |
ut32 | intr_num | ||
) |
Definition at line 50 of file esil_interrupt.c.
References rz_analysis_esil_interrupt_handler_t::cb, rz_analysis_esil_t::cmd, rz_analysis_esil_t::cmd_intr, rz_analysis_esil_interrupt_t::handler, rz_analysis_esil_t::interrupts, NULL, RZ_LOG_ERROR, RZ_LOG_WARN, rz_return_val_if_fail, and rz_analysis_esil_interrupt_t::user.
Referenced by esil_interrupt().
RZ_API void rz_analysis_esil_interrupt_free | ( | RzAnalysisEsil * | esil, |
RzAnalysisEsilInterrupt * | intr | ||
) |
Definition at line 34 of file esil_interrupt.c.
References rz_analysis_esil_interrupt_handler_t::fini, free(), rz_analysis_esil_interrupt_t::handler, rz_analysis_esil_release_source(), rz_return_if_fail, rz_analysis_esil_interrupt_t::src_id, and rz_analysis_esil_interrupt_t::user.
Referenced by interrupt_free().
RZ_API RzAnalysisEsilInterrupt* rz_analysis_esil_interrupt_new | ( | RzAnalysisEsil * | esil, |
ut32 | src_id, | ||
RzAnalysisEsilInterruptHandler * | ih | ||
) |
Definition at line 18 of file esil_interrupt.c.
References rz_analysis_esil_interrupt_handler_t::cb, rz_analysis_esil_interrupt_t::esil, rz_analysis_esil_interrupt_handler_t::fini, rz_analysis_esil_interrupt_t::handler, rz_analysis_esil_interrupt_handler_t::init, NULL, rz_analysis_esil_claim_source(), RZ_NEW0, rz_return_val_if_fail, rz_analysis_esil_interrupt_t::src_id, and rz_analysis_esil_interrupt_t::user.
Referenced by rz_analysis_esil_load_interrupts().
RZ_API void rz_analysis_esil_interrupts_fini | ( | RzAnalysisEsil * | esil | ) |
Definition at line 106 of file esil_interrupt.c.
References rz_analysis_esil_t::interrupts, NULL, and rz_return_if_fail.
Referenced by rz_analysis_esil_free().
RZ_API void rz_analysis_esil_interrupts_init | ( | RzAnalysisEsil * | esil | ) |
Definition at line 13 of file esil_interrupt.c.
References interrupt_free(), rz_analysis_esil_t::interrupts, NULL, and rz_return_if_fail.
Referenced by rz_analysis_esil_new().
RZ_API bool rz_analysis_esil_load_interrupts | ( | RzAnalysisEsil * | esil, |
RzAnalysisEsilInterruptHandler * | handlers[], | ||
ut32 | src_id | ||
) |
Definition at line 71 of file esil_interrupt.c.
References free(), i, rz_analysis_esil_t::interrupts, rz_analysis_esil_interrupt_new(), rz_analysis_esil_set_interrupt(), and rz_return_val_if_fail.
Referenced by rz_analysis_esil_load_interrupts_from_lib().
RZ_API bool rz_analysis_esil_load_interrupts_from_lib | ( | RzAnalysisEsil * | esil, |
const char * | path | ||
) |
Definition at line 91 of file esil_interrupt.c.
References path, rz_analysis_esil_get_source(), rz_analysis_esil_load_interrupts(), rz_analysis_esil_load_source(), rz_analysis_esil_release_source(), rz_lib_dl_sym(), and rz_return_val_if_fail.
Referenced by cmd_analysis_esil().
RZ_API bool rz_analysis_esil_set_interrupt | ( | RzAnalysisEsil * | esil, |
RzAnalysisEsilInterrupt * | intr | ||
) |
Definition at line 45 of file esil_interrupt.c.
References rz_analysis_esil_interrupt_handler_t::cb, rz_analysis_esil_interrupt_t::handler, rz_analysis_esil_t::interrupts, rz_analysis_esil_interrupt_handler_t::num, and rz_return_val_if_fail.
Referenced by rz_analysis_esil_load_interrupts().