Teach macho-dump to dump UUIDs.

llvm-svn: 85012
This commit is contained in:
Daniel Dunbar 2009-10-24 20:32:36 +00:00
parent 2cbca4e229
commit c9c49bde3b
1 changed files with 3 additions and 0 deletions

View File

@ -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)