Apply desired lifecycle of esil syscall and interrupt handlers in esil_dummy plugin ##emu ##api

This commit is contained in:
condret 2021-03-01 21:37:24 +01:00 committed by pancake
parent 65f0c42131
commit ca8dab9b1c

View File

@ -36,6 +36,12 @@ static void r_esil_dummy_fini(RAnalEsil *esil, void *user) {
if (op && op->code == esil_dummy_operation) {
r_anal_esil_del_op (esil, "dummy_op");
}
if (r_anal_esil_get_interrupt (esil, 1337) == esil_dummy_interrupt_handler) {
r_anal_esil_del_interrupt (esil, 1337);
}
if (r_anal_esil_get_syscall (esil, 1337) == esil_dummy_syscall_handler) {
r_anal_esil_del_syscall (esil, 1337);
}
eprintf ("Dummy: Deactivated\n");
}