mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 17:18:55 +00:00

As discussed on llvm-dev in http://lists.llvm.org/pipermail/llvm-dev/2017-September/117301.html this changes the command line interface of llvm-dwarfdump to match the one used by the dwarfdump utility shipping on macOS. In addition to being shorter to type this format also has the advantage of allowing more than one section to be specified at the same time. In a nutshell, with this change $ llvm-dwarfdump --debug-dump=info $ llvm-dwarfdump --debug-dump=apple-objc becomes $ dwarfdump --debug-info --apple-objc Differential Revision: https://reviews.llvm.org/D37714 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312970 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
516 B
Plaintext
15 lines
516 B
Plaintext
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-pubnames.elf-x86-64 \
|
|
RUN: --debug-pubnames | FileCheck %s
|
|
|
|
CHECK: .debug_pubnames contents:
|
|
CHECK: length = 0x000000a1 version = 0x0002 unit_offset = 0x00000000 unit_size = 0x00000141
|
|
|
|
CHECK: Offset Name
|
|
CHECK: 0x00000098 "global_namespace_variable"
|
|
CHECK: 0x000000a7 "global_namespace_function"
|
|
CHECK: 0x000000ec "static_member_function"
|
|
CHECK: 0x0000007c "global_variable"
|
|
CHECK: 0x00000103 "global_function"
|
|
CHECK: 0x000000c2 "member_function"
|
|
|