about summary refs log tree commit diff stats
path: root/example/ida/utils.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2016-11-19 19:31:40 +0100
committerGitHub <noreply@github.com>2016-11-19 19:31:40 +0100
commitef394501384c5be63e22741a32b846d8a2f9cf94 (patch)
treef59735897ddd500d70abf0dbf99e49458d58cb09 /example/ida/utils.py
parent6fb44a45bafe8ad126add357285fe65edd61e9bc (diff)
parent1db81a61716b4fcd332c011ce580d7fff2a07f4f (diff)
downloadmiasm-ef394501384c5be63e22741a32b846d8a2f9cf94.tar.gz
miasm-ef394501384c5be63e22741a32b846d8a2f9cf94.zip
Merge pull request #453 from commial/fix/idautils
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)