From ae30dd263f043b9311294ba20cfacac0a5de32d1 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Tue, 9 Jun 2020 18:42:04 +0200 Subject: Updt dis_block_callback; apply_splitting --- example/disasm/callback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/disasm/callback.py') diff --git a/example/disasm/callback.py b/example/disasm/callback.py index 7219462f..1498b11e 100644 --- a/example/disasm/callback.py +++ b/example/disasm/callback.py @@ -4,7 +4,7 @@ from miasm.analysis.machine import Machine from miasm.core.asmblock import AsmConstraint -def cb_x86_callpop(cur_bloc, loc_db, *args, **kwargs): +def cb_x86_callpop(mdis, cur_bloc, offset_to_dis): """ 1000: call 1005 1005: pop @@ -28,7 +28,7 @@ def cb_x86_callpop(cur_bloc, loc_db, *args, **kwargs): return loc_key = dst.loc_key - offset = loc_db.get_location_offset(loc_key) + offset = mdis.loc_db.get_location_offset(loc_key) ## The destination must be the next instruction if offset != last_instr.offset + last_instr.l: return -- cgit 1.4.1