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-04-12 13:46:21 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-04-12 13:46:21 +0200
commita5c35382518533d9c0a532a90be04db7b92e78f6 (patch)
tree11808f128cdf84799ee4492847782e06ff0c3f67 /example/ida/utils.py
parente8df24eab8cf24ea7a5a7c5adee0f7462deb7d58 (diff)
downloadmiasm-a5c35382518533d9c0a532a90be04db7b92e78f6.tar.gz
miasm-a5c35382518533d9c0a532a90be04db7b92e78f6.zip
Example/IDA: fix bigendian source info
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 585d86a9..e026f2fc 100644
--- a/example/ida/utils.py
+++ b/example/ida/utils.py
@@ -40,7 +40,7 @@ def guess_machine():
                         (False, 64, False): "aarch64l",
                         }
         is_armt = globals().get('armt', False)
-        is_bigendian = globals().get('bigendian', False)
+        is_bigendian = info.is_be()
         infos = (is_armt, size, is_bigendian)
         if not infos in info2machine:
             raise NotImplementedError('not fully functional')