Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / obj2yaml / Minidump / basic.yaml
blobdfabc132d8e71c52e0a6ac36af6e0df2da130eac
1 # RUN: yaml2obj %s -o %t
2 # RUN: obj2yaml %t > %t.stdout.yaml
3 # RUN: obj2yaml %t -o %t.file.yaml 2>&1 | count 0
4 # RUN: FileCheck --input-file=%t.stdout.yaml %s
5 # RUN: diff %t.stdout.yaml %t.file.yaml
7 --- !minidump
8 Streams:
9   - Type:            SystemInfo
10     Processor Arch:  BP_ARM64
11     Platform ID:     Linux
12     CSD Version:     Linux 3.13.0-91-generic
13     CPU:
14       CPUID:           0x05060708
15   - Type:            LinuxAuxv
16     Content:         DEADBEEFBAADF00D
17   - Type:            LinuxMaps
18     Text:             |
19       400d9000-400db000 r-xp 00000000 b3:04 227        /system/bin/app_process
20       400db000-400dc000 r--p 00001000 b3:04 227        /system/bin/app_process
22   - Type:            ModuleList
23     Modules:
24       - Base of Image:   0x0001020304050607
25         Size of Image:   0x08090A0B
26         Checksum:        0x0C0D0E0F
27         Time Date Stamp: 47
28         Module Name:     a.out
29         Version Info:
30           Signature:            0x10111213
31           Struct Version:       0x14151617
32           File Version High:    0x18191A1B
33           File Version Low:     0x1C1D1E1F
34           Product Version High: 0x20212223
35           Product Version Low:  0x24252627
36           File Flags Mask:      0x28292A2B
37           File Flags:           0x2C2D2E2F
38           File OS:              0x30313233
39           File Type:            0x34353637
40           File Subtype:         0x38393A3B
41           File Date High:       0x3C3D3E3F
42           File Date Low:        0x40414243
43         CodeView Record: '44454647'
44         Misc Record:     '48494A4B'
45       - Base of Image:   0x4C4D4E4F50515253
46         Size of Image:   0x54555657
47         Module Name:     libb.so
48         CodeView Record: '58595A5B'
49   - Type:            ThreadList
50     Threads:
51       - Thread Id:         0x5C5D5E5F
52         Priority Class:    0x60616263
53         Environment Block: 0x6465666768696A6B
54         Context:           '7C7D7E7F80818283'
55         Stack:
56           Start of Memory Range: 0x6C6D6E6F70717273
57           Content:               '7475767778797A7B'
58   - Type:            Exception
59     Thread ID:       0x7
60     Exception Record:
61       Exception Code:       0x10
62       Exception Flags:      0x5
63       Exception Record:     0x0102030405060708
64       Exception Address:    0x0A0B0C0D0E0F1011
65       Number of Parameters: 2
66       Parameter 0: 0x22
67       Parameter 1: 0x24
68     Thread Context:  '8182838485868788'
69   - Type:            MemoryList
70     Memory Ranges:   
71       - Start of Memory Range: 0x7C7D7E7F80818283
72         Content:               '8485868788'
73   - Type:            MemoryInfoList
74     Memory Ranges:
75       - Base Address:    0x0000000000000000
76         Allocation Protect: [  ]
77         Region Size:     0x0000000000010000
78         State:           [ MEM_FREE ]
79         Protect:         [ PAGE_NO_ACCESS ]
80         Type:            [  ]
81       - Base Address:    0x0000000000010000
82         Allocation Protect: [ PAGE_READ_WRITE ]
83         Region Size:     0x0000000000010000
84         State:           [ MEM_COMMIT ]
85         Type:            [ MEM_MAPPED ]
86       - Base Address:    0x0000000000020000
87         Allocation Base: 0x0000000000000000
88         Allocation Protect: [ PAGE_READ_WRITE, PAGE_WRITECOMBINE ]
89         Reserved0:       0xDEADBEEF
90         Region Size:     0x0000000000010000
91         State:           [ MEM_COMMIT, MEM_FREE ]
92         Type:            [ MEM_PRIVATE, MEM_MAPPED ]
93         Reserved1:       0xBAADF00D
94 ...
96 # CHECK:      --- !minidump
97 # CHECK-NEXT: Streams:
98 # CHECK-NEXT:   - Type:            SystemInfo
99 # CHECK-NEXT:     Processor Arch:  BP_ARM64
100 # CHECK-NEXT:     Platform ID:     Linux
101 # CHECK-NEXT:     CSD Version:     Linux 3.13.0-91-generic
102 # CHECK-NEXT:     CPU:
103 # CHECK-NEXT:       CPUID:           0x5060708
104 # CHECK-NEXT:   - Type:            LinuxAuxv
105 # CHECK-NEXT:     Content:         DEADBEEFBAADF00D
106 # CHECK-NEXT:   - Type:            LinuxMaps
107 # CHECK-NEXT:     Text:             |
108 # CHECK-NEXT:       400d9000-400db000 r-xp 00000000 b3:04 227        /system/bin/app_process
109 # CHECK-NEXT:       400db000-400dc000 r--p 00001000 b3:04 227        /system/bin/app_process
110 # CHECK-EMPTY:
111 # CHECK-NEXT:   - Type:            ModuleList
112 # CHECK-NEXT:     Modules:
113 # CHECK-NEXT:       - Base of Image:   0x1020304050607
114 # CHECK-NEXT:         Size of Image:   0x8090A0B
115 # CHECK-NEXT:         Checksum:        0xC0D0E0F
116 # CHECK-NEXT:         Time Date Stamp: 47
117 # CHECK-NEXT:         Module Name:     a.out
118 # CHECK-NEXT:         Version Info:
119 # CHECK-NEXT:           Signature:            0x10111213
120 # CHECK-NEXT:           Struct Version:       0x14151617
121 # CHECK-NEXT:           File Version High:    0x18191A1B
122 # CHECK-NEXT:           File Version Low:     0x1C1D1E1F
123 # CHECK-NEXT:           Product Version High: 0x20212223
124 # CHECK-NEXT:           Product Version Low:  0x24252627
125 # CHECK-NEXT:           File Flags Mask:      0x28292A2B
126 # CHECK-NEXT:           File Flags:           0x2C2D2E2F
127 # CHECK-NEXT:           File OS:              0x30313233
128 # CHECK-NEXT:           File Type:            0x34353637
129 # CHECK-NEXT:           File Subtype:         0x38393A3B
130 # CHECK-NEXT:           File Date High:       0x3C3D3E3F
131 # CHECK-NEXT:           File Date Low:        0x40414243
132 # CHECK-NEXT:         CodeView Record: '44454647'
133 # CHECK-NEXT:         Misc Record:     48494A4B
134 # CHECK-NEXT:       - Base of Image:   0x4C4D4E4F50515253
135 # CHECK-NEXT:         Size of Image:   0x54555657
136 # CHECK-NEXT:         Module Name:     libb.so
137 # CHECK-NEXT:         CodeView Record: 58595A5B
138 # CHECK-NEXT:   - Type:            ThreadList
139 # CHECK-NEXT:     Threads:
140 # CHECK-NEXT:       - Thread Id:         0x5C5D5E5F
141 # CHECK-NEXT:         Priority Class:    0x60616263
142 # CHECK-NEXT:         Environment Block: 0x6465666768696A6B
143 # CHECK-NEXT:         Context:           7C7D7E7F80818283
144 # CHECK-NEXT:         Stack:
145 # CHECK-NEXT:           Start of Memory Range: 0x6C6D6E6F70717273
146 # CHECK-NEXT:           Content:               7475767778797A7B
147 # CHECK-NEXT:   - Type:            Exception
148 # CHECK-NEXT:     Thread ID:       0x7
149 # CHECK-NEXT:     Exception Record:
150 # CHECK-NEXT:       Exception Code:       0x10
151 # CHECK-NEXT:       Exception Flags:      0x5
152 # CHECK-NEXT:       Exception Record:     0x102030405060708
153 # CHECK-NEXT:       Exception Address:    0xA0B0C0D0E0F1011
154 # CHECK-NEXT:       Number of Parameters: 2
155 # CHECK-NEXT:       Parameter 0: 0x22
156 # CHECK-NEXT:       Parameter 1: 0x24
157 # CHECK-NEXT:     Thread Context:  '8182838485868788'
158 # CHECK-NEXT:   - Type:            MemoryList
159 # CHECK-NEXT:     Memory Ranges:   
160 # CHECK-NEXT:       - Start of Memory Range: 0x7C7D7E7F80818283
161 # CHECK-NEXT:         Content:               '8485868788'
162 # CHECK-NEXT:   - Type:            MemoryInfoList
163 # CHECK-NEXT:     Memory Ranges:
164 # CHECK-NEXT:       - Base Address:       0x0
165 # CHECK-NEXT:         Allocation Protect: [  ]
166 # CHECK-NEXT:         Region Size:        0x10000
167 # CHECK-NEXT:         State:              [ MEM_FREE ]
168 # CHECK-NEXT:         Protect:            [ PAGE_NO_ACCESS ]
169 # CHECK-NEXT:         Type:               [  ]
170 # CHECK-NEXT:       - Base Address:       0x10000
171 # CHECK-NEXT:         Allocation Protect: [ PAGE_READ_WRITE ]
172 # CHECK-NEXT:         Region Size:        0x10000
173 # CHECK-NEXT:         State:              [ MEM_COMMIT ]
174 # CHECK-NEXT:         Type:               [ MEM_MAPPED ]
175 # CHECK-NEXT:       - Base Address:       0x20000
176 # CHECK-NEXT:         Allocation Base:    0x0
177 # CHECK-NEXT:         Allocation Protect: [ PAGE_READ_WRITE, PAGE_WRITECOMBINE ]
178 # CHECK-NEXT:         Reserved0:          0xDEADBEEF
179 # CHECK-NEXT:         Region Size:        0x10000
180 # CHECK-NEXT:         State:              [ MEM_COMMIT, MEM_FREE ]
181 # CHECK-NEXT:         Type:               [ MEM_PRIVATE, MEM_MAPPED ]
182 # CHECK-NEXT:         Reserved1:          0xBAADF00D
183 # CHECK-NEXT: ...