From ca8dab9b1c946b12f8e9723701aa2100ea2076d5 Mon Sep 17 00:00:00 2001 From: condret Date: Mon, 1 Mar 2021 21:37:24 +0100 Subject: [PATCH] Apply desired lifecycle of esil syscall and interrupt handlers in esil_dummy plugin ##emu ##api --- libr/anal/p/esil_dummy.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libr/anal/p/esil_dummy.c b/libr/anal/p/esil_dummy.c index dfd814b94f..e8f4428183 100644 --- a/libr/anal/p/esil_dummy.c +++ b/libr/anal/p/esil_dummy.c @@ -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"); }