about summary refs log tree commit diff stats
path: root/miasm/core/asmblock.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2019-03-25 23:18:33 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2019-11-19 18:01:34 +0100
commit95c1e5b832e15e6e83b084ffd6d11ab61367a602 (patch)
treeb3bd62efb87105b6bed23a53c68b2e166f1feb44 /miasm/core/asmblock.py
parent3d5a46d7c0d33c9f3b532d79c3a0841166d0cf21 (diff)
downloadfocaccia-miasm-95c1e5b832e15e6e83b084ffd6d11ab61367a602.tar.gz
focaccia-miasm-95c1e5b832e15e6e83b084ffd6d11ab61367a602.zip
Asmblock: disasm can complete asmcfg
Diffstat (limited to 'miasm/core/asmblock.py')
-rw-r--r--miasm/core/asmblock.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/miasm/core/asmblock.py b/miasm/core/asmblock.py
index 7f3265e0..9b07686f 100644
--- a/miasm/core/asmblock.py
+++ b/miasm/core/asmblock.py
@@ -1570,7 +1570,7 @@ class disasmEngine(object):
         warnings.warn('DEPRECATION WARNING: use "dis_block" instead of "dis_bloc"')
         return self.dis_block(offset)
 
-    def dis_multiblock(self, offset, blocks=None):
+    def dis_multiblock(self, offset, blocks=None, job_done=None):
         """Disassemble every block reachable from @offset regarding
         specific disasmEngine conditions
         Return an AsmCFG instance containing disassembled blocks
@@ -1579,7 +1579,8 @@ class disasmEngine(object):
                 merge with
         """
         log_asmblock.info("dis block all")
-        job_done = set()
+        if job_done is None:
+            job_done = set()
         if blocks is None:
             blocks = AsmCFG(self.loc_db)
         todo = [offset]