• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: mkdir -p %t/.build-id/1b
2# RUN: yaml2obj %s -o %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug
3# RUN: cd %t
4# RUN: llvm-objcopy --strip-all %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/stripped.out
5# RUN: lldb-test object-file %t/stripped.out | FileCheck %s
6
7# CHECK: Name: .debug_abbrev
8# CHECK: Name: .debug_addr
9# CHECK: Name: .debug_aranges
10# CHECK: Name: .debug_frame
11# CHECK: Name: .debug_info
12# CHECK: Name: .debug_line
13# CHECK: Name: .debug_line_str
14# CHECK: Name: .debug_loc
15# CHECK: Name: .debug_loclists
16# CHECK: Name: .debug_macinfo
17# CHECK: Name: .debug_macro
18# CHECK: Name: .debug_names
19# CHECK: Name: .debug_pubnames
20# CHECK: Name: .debug_pubtypes
21# CHECK: Name: .debug_ranges
22# CHECK: Name: .debug_rnglists
23# CHECK: Name: .debug_str
24# CHECK: Name: .debug_str_offsets
25# CHECK: Name: .debug_types
26
27--- !ELF
28FileHeader:
29  Class:           ELFCLASS64
30  Data:            ELFDATA2LSB
31  Type:            ET_EXEC
32  Machine:         EM_X86_64
33  Entry:           0x00000000004003D0
34Sections:
35  - Name:            .note.gnu.build-id
36    Type:            SHT_NOTE
37    Flags:           [ SHF_ALLOC ]
38    Address:         0x0000000000400274
39    AddressAlign:    0x0000000000000004
40    Content:         040000001400000003000000474E55001B8A73AC238390E32A7FF4AC8EBE4D6A41ECF5C9
41  - Name:            .text
42    Type:            SHT_PROGBITS
43    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
44    Address:         0x00000000004003D0
45    AddressAlign:    0x0000000000000010
46    Content:         DEADBEEFBAADF00D
47  - Name:            .debug_abbrev
48    Type:            SHT_PROGBITS
49    Content:         DEADBEEFBAADF00D
50  - Name:            .debug_addr
51    Type:            SHT_PROGBITS
52    Content:         DEADBEEFBAADF00D
53  - Name:            .debug_aranges
54    Type:            SHT_PROGBITS
55    Content:         DEADBEEFBAADF00D
56  - Name:            .debug_frame
57    Type:            SHT_PROGBITS
58    Content:         DEADBEEFBAADF00D
59  - Name:            .debug_info
60    Type:            SHT_PROGBITS
61    Content:         DEADBEEFBAADF00D
62  - Name:            .debug_line
63    Type:            SHT_PROGBITS
64    Content:         DEADBEEFBAADF00D
65  - Name:            .debug_line_str
66    Type:            SHT_PROGBITS
67    Content:         DEADBEEFBAADF00D
68  - Name:            .debug_loc
69    Type:            SHT_PROGBITS
70    Content:         DEADBEEFBAADF00D
71  - Name:            .debug_loclists
72    Type:            SHT_PROGBITS
73    Content:         DEADBEEFBAADF00D
74  - Name:            .debug_macinfo
75    Type:            SHT_PROGBITS
76    Content:         DEADBEEFBAADF00D
77  - Name:            .debug_macro
78    Type:            SHT_PROGBITS
79    Content:         DEADBEEFBAADF00D
80  - Name:            .debug_names
81    Type:            SHT_PROGBITS
82    Content:         DEADBEEFBAADF00D
83  - Name:            .debug_pubnames
84    Type:            SHT_PROGBITS
85    Content:         DEADBEEFBAADF00D
86  - Name:            .debug_pubtypes
87    Type:            SHT_PROGBITS
88    Content:         DEADBEEFBAADF00D
89  - Name:            .debug_ranges
90    Type:            SHT_PROGBITS
91    Content:         DEADBEEFBAADF00D
92  - Name:            .debug_rnglists
93    Type:            SHT_PROGBITS
94    Content:         DEADBEEFBAADF00D
95  - Name:            .debug_str
96    Type:            SHT_PROGBITS
97    Content:         DEADBEEFBAADF00D
98  - Name:            .debug_str_offsets
99    Type:            SHT_PROGBITS
100    Content:         DEADBEEFBAADF00D
101  - Name:            .debug_types
102    Type:            SHT_PROGBITS
103    Content:         DEADBEEFBAADF00D
104Symbols:
105  - Name:            main
106    Type:            STT_FUNC
107    Section:         .text
108    Value:           0x00000000004003D0
109    Size:            0x0000000000000008
110...
111