aboutsummaryrefslogtreecommitdiffstats
path: root/test/Scripts/macho-dump
diff options
context:
space:
mode:
Diffstat (limited to 'test/Scripts/macho-dump')
-rwxr-xr-xtest/Scripts/macho-dump8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Scripts/macho-dump b/test/Scripts/macho-dump
index c2598f5..72f8339 100755
--- a/test/Scripts/macho-dump
+++ b/test/Scripts/macho-dump
@@ -187,8 +187,12 @@ def dumpNlist32(f, i, opts):
print " ('n_sect', %r)" % n_sect
n_desc = f.read16()
print " ('n_desc', %r)" % n_desc
- n_value = f.read32()
- print " ('n_value', %r)" % n_value
+ if f.is64Bit:
+ n_value = f.read64()
+ print " ('n_value', %r)" % n_value
+ else:
+ n_value = f.read32()
+ print " ('n_value', %r)" % n_value
print " ('_string', %r)" % f.getString(n_strx)
print " ),"