diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2017-07-20 19:35:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-20 19:35:49 +0200 |
| commit | 4dfca940e75ad8af65b69dd9bab9ff503141984b (patch) | |
| tree | aad96a02c272397eae9fd7377ea86a713814516a /example/expression/solve_condition_stp.py | |
| parent | e45256e15c62aba315ab1e2db5697a14837f5827 (diff) | |
| parent | 4fcd0faa925d8d33db3622430548e932443d6f02 (diff) | |
| download | focaccia-miasm-4dfca940e75ad8af65b69dd9bab9ff503141984b.tar.gz focaccia-miasm-4dfca940e75ad8af65b69dd9bab9ff503141984b.zip | |
Merge pull request #579 from serpilliere/fix_get_bloc
Fix get bloc
Diffstat (limited to 'example/expression/solve_condition_stp.py')
| -rw-r--r-- | example/expression/solve_condition_stp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/example/expression/solve_condition_stp.py b/example/expression/solve_condition_stp.py index 27b0512f..c9d4c7af 100644 --- a/example/expression/solve_condition_stp.py +++ b/example/expression/solve_condition_stp.py @@ -37,9 +37,9 @@ def get_block(ir_arch, mdis, ad): l = mdis.symbol_pool.getby_offset_create(ad) if not l in ir_arch.blocks: ad = l.offset - b = mdis.dis_bloc(ad) - ir_arch.add_bloc(b) - b = ir_arch.get_bloc(l) + b = mdis.dis_block(ad) + ir_arch.add_block(b) + b = ir_arch.get_block(l) if b is None: raise LookupError('no block found at that address: %s' % l) return b @@ -168,7 +168,7 @@ if __name__ == '__main__': # add fake address and len to parsed instructions for i, line in enumerate(b.lines): line.offset, line.l = i, 1 - ir_arch.add_bloc(b) + ir_arch.add_block(b) irb = get_block(ir_arch, mdis, 0) sb.emulbloc(irb) sb.dump_mem() |