about summary refs log tree commit diff stats
path: root/example/ida/utils.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-12-07 13:11:53 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-12-07 13:11:53 +0100
commit4001cc72efdce25c72870ccbf35557291570c571 (patch)
tree9ca0c0d3f784a7008b8aa897ae3404b785832f6c /example/ida/utils.py
parent37c877b20aa1f6b3bbe81a7c79e0fa206ef2d428 (diff)
downloadmiasm-4001cc72efdce25c72870ccbf35557291570c571.tar.gz
miasm-4001cc72efdce25c72870ccbf35557291570c571.zip
Example: fix exprmem ptr access
Diffstat (limited to 'example/ida/utils.py')
-rw-r--r--example/ida/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ida/utils.py b/example/ida/utils.py
index 4f4f01fe..a64973f1 100644
--- a/example/ida/utils.py
+++ b/example/ida/utils.py
@@ -105,7 +105,7 @@ class TranslatorIDA(Translator):
         return out
 
     def from_ExprMem(self, expr):
-        ptr = self.from_expr(expr.arg)
+        ptr = self.from_expr(expr.ptr)
         size = idaapi.COLSTR('@' + str(expr.size), idaapi.SCOLOR_RPTCMT)
         out = '%s[%s]' % (size, ptr)
         return out