summaryrefslogtreecommitdiff
path: root/test/Scripts
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-24 20:32:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-24 20:32:36 +0000
commit3bc1b1993063acae36e06fe36cff39dc0295a2d8 (patch)
tree1d8de03e8db057913fac2a7bbcc96337a5bd59e1 /test/Scripts
parentdc4a745ffe4732c24cd854305f119f142b7daf71 (diff)
downloadllvm-3bc1b1993063acae36e06fe36cff39dc0295a2d8.tar.gz
llvm-3bc1b1993063acae36e06fe36cff39dc0295a2d8.tar.bz2
llvm-3bc1b1993063acae36e06fe36cff39dc0295a2d8.tar.xz
Teach macho-dump to dump UUIDs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Scripts')
-rwxr-xr-xtest/Scripts/macho-dump3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Scripts/macho-dump b/test/Scripts/macho-dump
index 12ec26d458..5b9943ada2 100755
--- a/test/Scripts/macho-dump
+++ b/test/Scripts/macho-dump
@@ -104,6 +104,9 @@ def dumpLoadCommand(f, i, opts):
dumpSymtabCommand(f, opts)
elif cmd == 11:
dumpDysymtabCommand(f, opts)
+ elif cmd == 27:
+ import uuid
+ print " ('uuid', %s)" % uuid.UUID(bytes=f.read(16))
else:
print >>sys.stderr,"%s: warning: unknown load command: %r" % (sys.argv[0], cmd)
f.read(cmdSize - 8)