about summary refs log tree commit diff stats
path: root/example/expression/access_c.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/expression/access_c.py
parenta9b3d7f1a9014336b46c6dca20332a6deaccfc6d (diff)
downloadfocaccia-miasm-4d511eab15845e519e5a8b0d9f742a550768b709.tar.gz
focaccia-miasm-4d511eab15845e519e5a8b0d9f742a550768b709.zip
IRBlock: move lines in AssignBlock
Diffstat (limited to 'example/expression/access_c.py')
-rw-r--r--example/expression/access_c.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/expression/access_c.py b/example/expression/access_c.py
index eabc3770..923a3331 100644
--- a/example/expression/access_c.py
+++ b/example/expression/access_c.py
@@ -109,8 +109,8 @@ def get_funcs_arg0(ctx, ira, lbl_head):
     element = ira.arch.regs.RSI
 
     for irb, index in find_call(ira):
-        line = irb.lines[index]
-        print 'Analysing references from:', hex(line.offset), line
+        instr = irb.irs[index].instr
+        print 'Analysing references from:', hex(instr.offset), instr
         g_list = g_dep.get(irb.label, set([element]), index, set([lbl_head]))
         for dep in g_list:
             emul_result = dep.emul(ctx)