diff options
| author | Ajax <commial@gmail.com> | 2016-11-17 16:28:56 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2016-11-17 16:28:56 +0100 |
| commit | 1db81a61716b4fcd332c011ce580d7fff2a07f4f (patch) | |
| tree | f0e83dab441f51dd887aaa15c15323972018e0d9 /example | |
| parent | 5f728a282520b5b98de64053d98b935b206b61c1 (diff) | |
| download | miasm-1db81a61716b4fcd332c011ce580d7fff2a07f4f.tar.gz miasm-1db81a61716b4fcd332c011ce580d7fff2a07f4f.zip | |
Update IDA utils with the new API
Diffstat (limited to 'example')
| -rw-r--r-- | example/ida/utils.py | 6 |
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) |