From 1db81a61716b4fcd332c011ce580d7fff2a07f4f Mon Sep 17 00:00:00 2001 From: Ajax Date: Thu, 17 Nov 2016 16:28:56 +0100 Subject: Update IDA utils with the new API --- example/ida/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example/ida/utils.py') 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) -- cgit 1.4.1