diff options
| author | Ajax <commial@gmail.com> | 2016-01-11 16:29:33 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2016-01-12 11:06:14 +0100 |
| commit | c2e3cfb0422f281b1effcd0750c52bc60f6d9cbb (patch) | |
| tree | 6c4048c736201084587418fd05f284729ccc2717 /miasm2/core/parse_asm.py | |
| parent | f921e8f5542bb6064071924595216417a194dbea (diff) | |
| download | miasm-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.py | 4 |
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 |