about summary refs log tree commit diff stats
path: root/example/ida/utils.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-11-17 16:28:56 +0100
committerAjax <commial@gmail.com>2016-11-17 16:28:56 +0100
commit1db81a61716b4fcd332c011ce580d7fff2a07f4f (patch)
treef0e83dab441f51dd887aaa15c15323972018e0d9 /example/ida/utils.py
parent5f728a282520b5b98de64053d98b935b206b61c1 (diff)
downloadmiasm-1db81a61716b4fcd332c011ce580d7fff2a07f4f.tar.gz
miasm-1db81a61716b4fcd332c011ce580d7fff2a07f4f.zip
Update IDA utils with the new API
Diffstat (limited to 'example/ida/utils.py')
-rw-r--r--example/ida/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ida/utils.py b/example/ida/utils.py
index fa1638ab..9af98cc5 100644
--- a/example/ida/utils.py
+++ b/example/ida/utils.py
@@ -111,11 +111,11 @@ def expr2colorstr(regs_ids, expr):
     elif isinstance(expr, m2_expr.ExprCompose):
         s = "{"
         s += ", ".join(["%s, %s, %s" % (expr2colorstr(regs_ids, subexpr),
-                                        idaapi.COLSTR(str(start),
+                                        idaapi.COLSTR(str(idx),
                                                       idaapi.SCOLOR_RPTCMT),
-                                        idaapi.COLSTR(str(stop),
+                                        idaapi.COLSTR(str(idx + expr.size),
                                                       idaapi.SCOLOR_RPTCMT))
-                        for subexpr, start, stop in expr.args])
+                        for idx, subexpr in expr.iter_args()])
         s += "}"
     else:
         s = str(expr)