about summary refs log tree commit diff stats
path: root/miasm2/core/parse_asm.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-01-11 16:29:33 +0100
committerAjax <commial@gmail.com>2016-01-12 11:06:14 +0100
commitc2e3cfb0422f281b1effcd0750c52bc60f6d9cbb (patch)
tree6c4048c736201084587418fd05f284729ccc2717 /miasm2/core/parse_asm.py
parentf921e8f5542bb6064071924595216417a194dbea (diff)
downloadmiasm-c2e3cfb0422f281b1effcd0750c52bc60f6d9cbb.tar.gz
miasm-c2e3cfb0422f281b1effcd0750c52bc60f6d9cbb.zip
AsmBloc: handle multiple constraints to the same block
Always the same type -> one of the constraint
c_bad and sth -> error
c_next and c_to -> c_next
Diffstat (limited to 'miasm2/core/parse_asm.py')
-rw-r--r--miasm2/core/parse_asm.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/miasm2/core/parse_asm.py b/miasm2/core/parse_asm.py
index 5437ca22..e55a9af8 100644
--- a/miasm2/core/parse_asm.py
+++ b/miasm2/core/parse_asm.py
@@ -316,5 +316,9 @@ def parse_txt(mnemo, attrib, txt, symbol_pool=None):
         i += 1
 
     for block in blocks:
+        # Fix multiple constraints
+        block.fix_constraints()
+
+        # Log block
         asmbloc.log_asmbloc.info(block)
     return blocks, symbol_pool