Skip to content

Commit 47ac6a2

Browse files
Isolated the tests to new cases
1 parent c8bfbbc commit 47ac6a2

File tree

4 files changed

+245
-190
lines changed

4 files changed

+245
-190
lines changed

lldb/test/Shell/ObjectFile/XCOFF/basic-info.yaml

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@
2929
# CHECK-NEXT: Type: dwarf-abbrev
3030
# CHECK-NEXT: Permissions: r--
3131

32-
# RUN: %lldb %t -o "image dump symtab" -o exit | FileCheck %s --check-prefix=CHECK-SYMBOL
33-
# CHECK-SYMBOL:Index UserID DSX Type File Address/Value Load Address Size Flags Name
34-
# CHECK-SYMBOL:[ 0] 4294967295 Invalid 0xffffffffffffffff 0x0000000000000000 0x00000000 errno
35-
# CHECK-SYMBOL:[ 1] 4294967295 Code 0x0000000100000500 0x0000000000000398 0x00000000 __threads_init
36-
# CHECK-SYMBOL:[ 2] 4294967295 Data 0x0000000110000a70 0x0000000000000060 0x00000000 __threads_init
37-
# CHECK-SYMBOL:[ 3] 4294967295 Invalid 0x0000000110000ad0 0x00000000000000b0 0x00000000 TOC
38-
# CHECK-SYMBOL:[ 4] 4294967295 Invalid 0x0000000100000898 0x00000000100001d8 0x00000000 text
39-
# CHECK-SYMBOL:[ 5] 4294967295 Code 0x0000000100000898 0x00000000100001d8 0x00000000 main
40-
4132
--- !XCOFF
4233
FileHeader:
4334
MagicNumber: 0x1F7
@@ -113,90 +104,5 @@ Sections:
113104
NumberOfLineNumbers: 0x0
114105
Flags: [ STYP_DWARF ]
115106
SectionData: 01110125
116-
Symbols:
117-
- Name: errno
118-
Value: 0x0
119-
Section: N_UNDEF
120-
Type: 0x0
121-
StorageClass: C_EXT
122-
NumberOfAuxEntries: 1
123-
AuxEntries:
124-
- Type: AUX_CSECT
125-
ParameterHashIndex: 0
126-
TypeChkSectNum: 0
127-
SymbolAlignmentAndType: 0
128-
StorageMappingClass: XMC_RW
129-
SectionOrLengthLo: 0
130-
SectionOrLengthHi: 0
131-
- Name: .__threads_init
132-
Value: 0x100000500
133-
Section: .text
134-
Type: 0x20
135-
StorageClass: C_EXT
136-
NumberOfAuxEntries: 1
137-
AuxEntries:
138-
- Type: AUX_CSECT
139-
ParameterHashIndex: 0
140-
TypeChkSectNum: 0
141-
SymbolAlignmentAndType: 2
142-
StorageMappingClass: XMC_PR
143-
SectionOrLengthLo: 80
144-
SectionOrLengthHi: 0
145-
- Name: __threads_init
146-
Value: 0x110000A70
147-
Section: .data
148-
Type: 0x0
149-
StorageClass: C_EXT
150-
NumberOfAuxEntries: 1
151-
AuxEntries:
152-
- Type: AUX_CSECT
153-
ParameterHashIndex: 0
154-
TypeChkSectNum: 0
155-
SymbolAlignmentAndType: 25
156-
StorageMappingClass: XMC_DS
157-
SectionOrLengthLo: 24
158-
SectionOrLengthHi: 0
159-
- Name: TOC
160-
Value: 0x110000AD0
161-
Section: .data
162-
Type: 0x0
163-
StorageClass: C_HIDEXT
164-
NumberOfAuxEntries: 1
165-
AuxEntries:
166-
- Type: AUX_CSECT
167-
ParameterHashIndex: 0
168-
TypeChkSectNum: 0
169-
SymbolAlignmentAndType: 25
170-
StorageMappingClass: XMC_TC0
171-
SectionOrLengthLo: 0
172-
SectionOrLengthHi: 0
173-
- Name: .text
174-
Value: 0x100000898
175-
Section: .text
176-
Type: 0x0
177-
StorageClass: C_HIDEXT
178-
NumberOfAuxEntries: 1
179-
AuxEntries:
180-
- Type: AUX_CSECT
181-
ParameterHashIndex: 0
182-
TypeChkSectNum: 0
183-
SymbolAlignmentAndType: 17
184-
StorageMappingClass: XMC_PR
185-
SectionOrLengthLo: 58
186-
SectionOrLengthHi: 0
187-
- Name: .main
188-
Value: 0x100000898
189-
Section: .text
190-
Type: 0x0
191-
StorageClass: C_EXT
192-
NumberOfAuxEntries: 1
193-
AuxEntries:
194-
- Type: AUX_CSECT
195-
ParameterHashIndex: 0
196-
TypeChkSectNum: 0
197-
SymbolAlignmentAndType: 2
198-
StorageMappingClass: XMC_PR
199-
SectionOrLengthLo: 135
200-
SectionOrLengthHi: 0
201107
StringTable: {}
202108
...

lldb/test/Shell/ObjectFile/XCOFF/basic-info32.yaml

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@
2929
# CHECK-NEXT: Type: dwarf-abbrev
3030
# CHECK-NEXT: Permissions: r--
3131

32-
33-
# RUN: %lldb %t -o "image dump symtab" -o exit | FileCheck %s --check-prefix=CHECK-SYMBOL
34-
# CHECK-SYMBOL:Index UserID DSX Type File Address/Value Load Address Size Flags Name
35-
#[ 0] 4294967295 Invalid 0xffffffffffffffff 0x0000000000000000 0x00000000 errno
36-
# CHECK-SYMBOL:[ 1] 4294967295 Code 0x0000000010000320 0x0000000000000420 0x00000000 __threads_init
37-
# CHECK-SYMBOL:[ 2] 4294967295 Data 0x0000000020000920 0x000000000000003c 0x00000000 __threads_init
38-
# CHECK-SYMBOL:[ 3] 4294967295 Invalid 0x000000002000095c 0x0000000000000060 0x00000000 TOC
39-
# CHECK-SYMBOL:[ 4] 4294967295 Invalid 0x0000000010000740 0x000000000000003a 0x00000000 text
40-
# CHECK-SYMBOL:[ 5] 4294967295 Invalid 0x0000000010000740 0x000000000000003a 0x00000000 main
41-
4232
--- !XCOFF
4333
FileHeader:
4434
MagicNumber: 0x1DF
@@ -116,91 +106,5 @@ Sections:
116106
NumberOfLineNumbers: 0x0
117107
Flags: [ STYP_DWARF ]
118108
SectionData: 01110125
119-
Symbols:
120-
- Name: errno
121-
Value: 0x0
122-
Section: N_UNDEF
123-
Type: 0x0
124-
StorageClass: C_EXT
125-
NumberOfAuxEntries: 1
126-
AuxEntries:
127-
- Type: AUX_CSECT
128-
ParameterHashIndex: 0
129-
TypeChkSectNum: 0
130-
StorageMappingClass: XMC_RW
131-
SectionOrLength: 0
132-
StabInfoIndex: 0
133-
StabSectNum: 0
134-
- Name: .__threads_init
135-
Value: 0x10000320
136-
Section: .text
137-
Type: 0x20
138-
StorageClass: C_EXT
139-
NumberOfAuxEntries: 1
140-
AuxEntries:
141-
- Type: AUX_CSECT
142-
ParameterHashIndex: 0
143-
TypeChkSectNum: 0
144-
StorageMappingClass: XMC_PR
145-
SectionOrLength: 84
146-
StabInfoIndex: 0
147-
StabSectNum: 0
148-
- Name: __threads_init
149-
Value: 0x20000920
150-
Section: .data
151-
Type: 0x0
152-
StorageClass: C_EXT
153-
NumberOfAuxEntries: 1
154-
AuxEntries:
155-
- Type: AUX_CSECT
156-
ParameterHashIndex: 0
157-
TypeChkSectNum: 0
158-
StorageMappingClass: XMC_DS
159-
SectionOrLength: 12
160-
StabInfoIndex: 0
161-
StabSectNum: 0
162-
- Name: TOC
163-
Value: 0x2000095C
164-
Section: .data
165-
Type: 0x0
166-
StorageClass: C_HIDEXT
167-
NumberOfAuxEntries: 1
168-
AuxEntries:
169-
- Type: AUX_CSECT
170-
ParameterHashIndex: 0
171-
TypeChkSectNum: 0
172-
StorageMappingClass: XMC_TC0
173-
SectionOrLength: 0
174-
StabInfoIndex: 0
175-
StabSectNum: 0
176-
- Name: .text
177-
Value: 0x10000740
178-
Section: .text
179-
Type: 0x0
180-
StorageClass: C_HIDEXT
181-
NumberOfAuxEntries: 1
182-
AuxEntries:
183-
- Type: AUX_CSECT
184-
ParameterHashIndex: 0
185-
TypeChkSectNum: 0
186-
StorageMappingClass: XMC_PR
187-
SectionOrLength: 58
188-
StabInfoIndex: 0
189-
StabSectNum: 0
190-
- Name: .main
191-
Value: 0x10000740
192-
Section: .text
193-
Type: 0x0
194-
StorageClass: C_EXT
195-
NumberOfAuxEntries: 1
196-
AuxEntries:
197-
- Type: AUX_CSECT
198-
ParameterHashIndex: 0
199-
TypeChkSectNum: 0
200-
StorageMappingClass: XMC_PR
201-
SectionOrLength: 137
202-
StabInfoIndex: 0
203-
StabSectNum: 0
204-
205109
StringTable: {}
206110
...
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# RUN: yaml2obj %s -o %t
2+
# RUN: %lldb %t -o "image dump symtab" -o exit | FileCheck %s
3+
# CHECK: Index UserID DSX Type File Address/Value Load Address Size Flags Name
4+
# CHECK: [ 0] 4294967295 Invalid 0xffffffffffffffff 0x0000000000000000 0x00000000 errno
5+
# CHECK: [ 1] 4294967295 Code 0x0000000100000500 0x0000000000000398 0x00000000 __threads_init
6+
# CHECK: [ 2] 4294967295 Data 0x0000000110000a70 0x0000000000000060 0x00000000 __threads_init
7+
# CHECK: [ 3] 4294967295 Invalid 0x0000000110000ad0 0x00000000000000b0 0x00000000 TOC
8+
# CHECK: [ 4] 4294967295 Invalid 0x0000000100000898 0x00000000100001d8 0x00000000 text
9+
# CHECK: [ 5] 4294967295 Code 0x0000000100000898 0x00000000100001d8 0x00000000 main
10+
11+
--- !XCOFF
12+
FileHeader:
13+
MagicNumber: 0x1F7
14+
NumberOfSections: 2
15+
CreationTime: 000000000
16+
Flags: 0x0002
17+
Sections:
18+
- Name: .text
19+
Address: 0x100000438
20+
Size: 0x38
21+
FileOffsetToData: 0x0
22+
FileOffsetToLineNumbers: 0x0
23+
NumberOfLineNumbers: 0x0
24+
Flags: [ STYP_TEXT ]
25+
SectionData: E8C20000
26+
- Name: .data
27+
Address: 0x1100008D2
28+
Size: 0x2AE
29+
FileOffsetToData: 0x8D2
30+
FileOffsetToRelocations: 0x132E
31+
FileOffsetToLineNumbers: 0x0
32+
NumberOfRelocations: 0x22
33+
NumberOfLineNumbers: 0x0
34+
Flags: [ STYP_DATA ]
35+
SectionData: ''
36+
Symbols:
37+
- Name: errno
38+
Value: 0x0
39+
Section: N_UNDEF
40+
Type: 0x0
41+
StorageClass: C_EXT
42+
NumberOfAuxEntries: 1
43+
AuxEntries:
44+
- Type: AUX_CSECT
45+
ParameterHashIndex: 0
46+
TypeChkSectNum: 0
47+
SymbolAlignmentAndType: 0
48+
StorageMappingClass: XMC_RW
49+
SectionOrLengthLo: 0
50+
SectionOrLengthHi: 0
51+
- Name: .__threads_init
52+
Value: 0x100000500
53+
Section: .text
54+
Type: 0x20
55+
StorageClass: C_EXT
56+
NumberOfAuxEntries: 1
57+
AuxEntries:
58+
- Type: AUX_CSECT
59+
ParameterHashIndex: 0
60+
TypeChkSectNum: 0
61+
SymbolAlignmentAndType: 2
62+
StorageMappingClass: XMC_PR
63+
SectionOrLengthLo: 80
64+
SectionOrLengthHi: 0
65+
- Name: __threads_init
66+
Value: 0x110000A70
67+
Section: .data
68+
Type: 0x0
69+
StorageClass: C_EXT
70+
NumberOfAuxEntries: 1
71+
AuxEntries:
72+
- Type: AUX_CSECT
73+
ParameterHashIndex: 0
74+
TypeChkSectNum: 0
75+
SymbolAlignmentAndType: 25
76+
StorageMappingClass: XMC_DS
77+
SectionOrLengthLo: 24
78+
SectionOrLengthHi: 0
79+
- Name: TOC
80+
Value: 0x110000AD0
81+
Section: .data
82+
Type: 0x0
83+
StorageClass: C_HIDEXT
84+
NumberOfAuxEntries: 1
85+
AuxEntries:
86+
- Type: AUX_CSECT
87+
ParameterHashIndex: 0
88+
TypeChkSectNum: 0
89+
SymbolAlignmentAndType: 25
90+
StorageMappingClass: XMC_TC0
91+
SectionOrLengthLo: 0
92+
SectionOrLengthHi: 0
93+
- Name: .text
94+
Value: 0x100000898
95+
Section: .text
96+
Type: 0x0
97+
StorageClass: C_HIDEXT
98+
NumberOfAuxEntries: 1
99+
AuxEntries:
100+
- Type: AUX_CSECT
101+
ParameterHashIndex: 0
102+
TypeChkSectNum: 0
103+
SymbolAlignmentAndType: 17
104+
StorageMappingClass: XMC_PR
105+
SectionOrLengthLo: 58
106+
SectionOrLengthHi: 0
107+
- Name: .main
108+
Value: 0x100000898
109+
Section: .text
110+
Type: 0x0
111+
StorageClass: C_EXT
112+
NumberOfAuxEntries: 1
113+
AuxEntries:
114+
- Type: AUX_CSECT
115+
ParameterHashIndex: 0
116+
TypeChkSectNum: 0
117+
SymbolAlignmentAndType: 2
118+
StorageMappingClass: XMC_PR
119+
SectionOrLengthLo: 135
120+
SectionOrLengthHi: 0
121+
...

0 commit comments

Comments
 (0)