diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-02-15 17:06:02 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-03-13 14:13:14 +0100 |
| commit | 8651b88eda697ff955757847391e3759dbac26b2 (patch) | |
| tree | 605e703df0ae01b07572f0b3dc123a389d6a5b21 /example/disasm/callback.py | |
| parent | 397af784e950e4df8a76b4e2806e743193580943 (diff) | |
| download | focaccia-miasm-8651b88eda697ff955757847391e3759dbac26b2.tar.gz focaccia-miasm-8651b88eda697ff955757847391e3759dbac26b2.zip | |
Asmbloc: rename asm_constraint to AsmConstraint
Diffstat (limited to 'example/disasm/callback.py')
| -rw-r--r-- | example/disasm/callback.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/disasm/callback.py b/example/disasm/callback.py index f1b2d3c8..20ffe962 100644 --- a/example/disasm/callback.py +++ b/example/disasm/callback.py @@ -1,5 +1,5 @@ from miasm2.core.bin_stream import bin_stream_str -from miasm2.core.asmbloc import AsmLabel, asm_constraint, expr_is_label +from miasm2.core.asmbloc import AsmLabel, AsmConstraint, expr_is_label from miasm2.arch.x86.disasm import dis_x86_32, cb_x86_funcs @@ -34,7 +34,7 @@ def cb_x86_callpop(cur_bloc, symbol_pool, *args, **kwargs): # Update next blocks to process in the disassembly engine cur_bloc.bto.clear() - cur_bloc.add_cst(dst.name.offset, asm_constraint.c_next, symbol_pool) + cur_bloc.add_cst(dst.name.offset, AsmConstraint.c_next, symbol_pool) # Prepare a tiny shellcode |