diff options
| author | Ajax <commial@gmail.com> | 2015-11-03 14:44:17 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-11-03 14:44:17 +0100 |
| commit | 29fd673ce0fa954a352e51926aabd2e2ddd6447b (patch) | |
| tree | 07e80b76e4d7ed61eef7790edad8c6f55100d9f7 | |
| parent | ecb48bb8a993e72b96d84fe09f81bbdc0c513fbc (diff) | |
| download | miasm-29fd673ce0fa954a352e51926aabd2e2ddd6447b.tar.gz miasm-29fd673ce0fa954a352e51926aabd2e2ddd6447b.zip | |
ASM: call disasm callbacks with named arguments
Diffstat (limited to '')
| -rw-r--r-- | miasm2/core/asmbloc.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/miasm2/core/asmbloc.py b/miasm2/core/asmbloc.py index 9f67747c..71e577cf 100644 --- a/miasm2/core/asmbloc.py +++ b/miasm2/core/asmbloc.py @@ -440,8 +440,9 @@ def dis_bloc(mnemo, pool_bin, cur_bloc, offset, job_done, symbol_pool, offsets_to_dis.add(offset) if dis_bloc_callback is not None: - dis_bloc_callback( - mnemo, attrib, pool_bin, cur_bloc, offsets_to_dis, symbol_pool) + dis_bloc_callback(mn=mnemo, attrib=attrib, pool_bin=pool_bin, + cur_bloc=cur_bloc, offsets_to_dis=offsets_to_dis, + symbol_pool=symbol_pool) # print 'dst', [hex(x) for x in offsets_to_dis] return offsets_to_dis @@ -482,9 +483,9 @@ def split_bloc(mnemo, attrib, pool_bin, blocs, offsets_to_dis = set( [x.label.offset for x in new_b.bto if isinstance(x.label, asm_label)]) - dis_bloc_callback( - mnemo, attrib, pool_bin, new_b, offsets_to_dis, - symbol_pool) + dis_bloc_callback(mn=mnemo, attrib=attrib, pool_bin=pool_bin, + cur_bloc=new_b, offsets_to_dis=offsets_to_dis, + symbol_pool=symbol_pool) blocs.append(new_b) a, b = cb.get_range() |