about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/disasm.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-05 11:12:13 +0100
committerAjax <commial@gmail.com>2015-11-05 11:19:25 +0100
commitf6dcdced5bfdb1ae32613df194890d70a03da4b8 (patch)
tree11054ffecaa38afbf2c5e816bc9b962770545f91 /miasm2/arch/x86/disasm.py
parent29fd673ce0fa954a352e51926aabd2e2ddd6447b (diff)
downloadmiasm-f6dcdced5bfdb1ae32613df194890d70a03da4b8.tar.gz
miasm-f6dcdced5bfdb1ae32613df194890d70a03da4b8.zip
Disasm: update callbacks with new API
Diffstat (limited to 'miasm2/arch/x86/disasm.py')
-rw-r--r--miasm2/arch/x86/disasm.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/miasm2/arch/x86/disasm.py b/miasm2/arch/x86/disasm.py
index 8d06fb8d..6d144944 100644
--- a/miasm2/arch/x86/disasm.py
+++ b/miasm2/arch/x86/disasm.py
@@ -3,7 +3,7 @@ from miasm2.expression.expression import ExprId
 from miasm2.arch.x86.arch import mn_x86
 
 
-def cb_x86_callpop(mn, attrib, pool_bin, cur_bloc, offsets_to_dis, symbol_pool):
+def cb_x86_callpop(cur_bloc, *args, **kwargs):
     """
     1000: call 1005
     1005: pop
@@ -14,7 +14,6 @@ def cb_x86_callpop(mn, attrib, pool_bin, cur_bloc, offsets_to_dis, symbol_pool):
     1005: pop
 
     """
-
     if len(cur_bloc.lines) < 1:
         return
     l = cur_bloc.lines[-1]
@@ -33,9 +32,9 @@ def cb_x86_callpop(mn, attrib, pool_bin, cur_bloc, offsets_to_dis, symbol_pool):
 cb_x86_funcs = [cb_x86_callpop]
 
 
-def cb_x86_disasm(mn, attrib, pool_bin, cur_bloc, offsets_to_dis, symbol_pool):
+def cb_x86_disasm(*args, **kwargs):
     for func in cb_x86_funcs:
-        func(mn, attrib, pool_bin, cur_bloc, offsets_to_dis, symbol_pool)
+        func(*args, **kwargs)
 
 
 class dis_x86(disasmEngine):