OSDN Git Service

Support Universal dSYM files in llvm-objdump
authorMichael Trent <mtrent@apple.com>
Thu, 30 May 2019 17:56:05 +0000 (17:56 +0000)
committerMichael Trent <mtrent@apple.com>
Thu, 30 May 2019 17:56:05 +0000 (17:56 +0000)
commit53888ed10fc7dca7aad0b35e45ac97453c2a9bef
tree7f10e4a45f50d10a20e58a6cb19a6974e3f75200
parentc917023172c427ffcd03bae64d7f6ae7c515d171
Support Universal dSYM files in llvm-objdump

Summary:
Commonly programmers use llvm-objdump to disassemble Mach-O target
binaries with Mach-O dSYMS. While llvm-objdump allows programmers to
disassemble Universal binaries, it previously did not recognize
Universal dSYM files. This change updates llvm-objdump to support
passing in Universal files via the -dsym option. Now, when
disassembling a Mach-O file either as a stand alone file or as an entry
in a Universal binariy, llvm-objdump will search through a Universal
dSYM for a Mach-O matching the architecture flag of the file being
disassembled.

Reviewers: pete, lhames

Reviewed By: pete

Subscribers: rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62642

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362121 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/X86/macho-disassemble-g-dsym.test
tools/llvm-objdump/MachODump.cpp