about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2017-07-27 17:22:19 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2017-07-27 21:17:54 +0200
commite33bffdca01c7528608681e6d79afcb1b46e37de (patch)
treea829bb6ea4040bde14b212fa8581fac92bbdea3b /example
parentb088e965b09abedad4e62664c05b06a65522a80e (diff)
downloadmiasm-e33bffdca01c7528608681e6d79afcb1b46e37de.tar.gz
miasm-e33bffdca01c7528608681e6d79afcb1b46e37de.zip
Asmblock: remove disasm engine job_done attribute
WARNING: disasmEngine behaviour modification

Before patch: job_done containted the already disassembled addresses. If the
user disassembled twice the same addresse, the engine will return empty
object on the second call.

After patch: If the user disassemble twice the same addresse, the engine will
return result of the disassembling in both cases.
Diffstat (limited to 'example')
-rw-r--r--example/disasm/callback.py3
-rw-r--r--example/ida/ctype_propagation.py1
2 files changed, 0 insertions, 4 deletions
diff --git a/example/disasm/callback.py b/example/disasm/callback.py
index 5aae7f6f..63987e85 100644
--- a/example/disasm/callback.py
+++ b/example/disasm/callback.py
@@ -54,9 +54,6 @@ cb_x86_funcs.append(cb_x86_callpop)
 ## Other method:
 ## mdis.dis_bloc_callback = cb_x86_callpop
 
-# Clean disassembly cache
-mdis.job_done.clear()
-
 print "=" * 40
 print "With callback:\n"
 blocks_after = mdis.dis_multiblock(0)
diff --git a/example/ida/ctype_propagation.py b/example/ida/ctype_propagation.py
index a48179e9..cb342213 100644
--- a/example/ida/ctype_propagation.py
+++ b/example/ida/ctype_propagation.py
@@ -57,7 +57,6 @@ Dependency Graph Settings
 
 def get_block(ir_arch, mdis, addr):
     """Get IRBlock at address @addr"""
-    mdis.job_done.clear()
     lbl = ir_arch.get_label(addr)
     if not lbl in ir_arch.blocks:
         block = mdis.dis_block(lbl.offset)