about summary refs log tree commit diff stats
path: root/example/symbol_exec/depgraph.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2017-04-14 23:04:46 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2017-04-20 12:36:51 +0200
commit4d511eab15845e519e5a8b0d9f742a550768b709 (patch)
tree418429f7a3cdedf5efdf074126bc76dbd04f9657 /example/symbol_exec/depgraph.py
parenta9b3d7f1a9014336b46c6dca20332a6deaccfc6d (diff)
downloadmiasm-4d511eab15845e519e5a8b0d9f742a550768b709.tar.gz
miasm-4d511eab15845e519e5a8b0d9f742a550768b709.zip
IRBlock: move lines in AssignBlock
Diffstat (limited to 'example/symbol_exec/depgraph.py')
-rw-r--r--example/symbol_exec/depgraph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/symbol_exec/depgraph.py b/example/symbol_exec/depgraph.py
index 0b971b15..56ca3f82 100644
--- a/example/symbol_exec/depgraph.py
+++ b/example/symbol_exec/depgraph.py
@@ -75,8 +75,8 @@ dg = DependencyGraph(ir_arch, implicit=args.implicit,
 target_addr = int(args.target_addr, 0)
 current_block = list(ir_arch.getby_offset(target_addr))[0]
 line_nb = 0
-for line_nb, line in enumerate(current_block.lines):
-    if line.offset == target_addr:
+for line_nb, assignblk in enumerate(current_block.irs):
+    if assignblk.instr.offset == target_addr:
         break
 
 # Enumerate solutions