TargetParser: AArch64: Add part numbers for Apple CPUs.
[llvm-project.git] / llvm / test / tools / obj2yaml / Minidump / basic.yaml
blob3df4689d6761ea427ab2a813e728987f78a388cf
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:            Memory64List
74     Memory Ranges:
75       - Start of Memory Range: 0x7FFFFFCF08180283
76         Content:               '68656c6c6f776f726c64'
77       - Start of Memory Range: 0x7FFAFFCF08180283
78         Data Size:              8
79         Content:               '8008'
80   - Type:            MemoryInfoList
81     Memory Ranges:
82       - Base Address:    0x0000000000000000
83         Allocation Protect: [  ]
84         Region Size:     0x0000000000010000
85         State:           [ MEM_FREE ]
86         Protect:         [ PAGE_NO_ACCESS ]
87         Type:            [  ]
88       - Base Address:    0x0000000000010000
89         Allocation Protect: [ PAGE_READ_WRITE ]
90         Region Size:     0x0000000000010000
91         State:           [ MEM_COMMIT ]
92         Type:            [ MEM_MAPPED ]
93       - Base Address:    0x0000000000020000
94         Allocation Base: 0x0000000000000000
95         Allocation Protect: [ PAGE_READ_WRITE, PAGE_WRITECOMBINE ]
96         Reserved0:       0xDEADBEEF
97         Region Size:     0x0000000000010000
98         State:           [ MEM_COMMIT, MEM_FREE ]
99         Type:            [ MEM_PRIVATE, MEM_MAPPED ]
100         Reserved1:       0xBAADF00D
103 # CHECK:      --- !minidump
104 # CHECK-NEXT: Streams:
105 # CHECK-NEXT:   - Type:            SystemInfo
106 # CHECK-NEXT:     Processor Arch:  BP_ARM64
107 # CHECK-NEXT:     Platform ID:     Linux
108 # CHECK-NEXT:     CSD Version:     Linux 3.13.0-91-generic
109 # CHECK-NEXT:     CPU:
110 # CHECK-NEXT:       CPUID:           0x5060708
111 # CHECK-NEXT:   - Type:            LinuxAuxv
112 # CHECK-NEXT:     Content:         DEADBEEFBAADF00D
113 # CHECK-NEXT:   - Type:            LinuxMaps
114 # CHECK-NEXT:     Text:             |
115 # CHECK-NEXT:       400d9000-400db000 r-xp 00000000 b3:04 227        /system/bin/app_process
116 # CHECK-NEXT:       400db000-400dc000 r--p 00001000 b3:04 227        /system/bin/app_process
117 # CHECK-EMPTY:
118 # CHECK-NEXT:   - Type:            ModuleList
119 # CHECK-NEXT:     Modules:
120 # CHECK-NEXT:       - Base of Image:   0x1020304050607
121 # CHECK-NEXT:         Size of Image:   0x8090A0B
122 # CHECK-NEXT:         Checksum:        0xC0D0E0F
123 # CHECK-NEXT:         Time Date Stamp: 47
124 # CHECK-NEXT:         Module Name:     a.out
125 # CHECK-NEXT:         Version Info:
126 # CHECK-NEXT:           Signature:            0x10111213
127 # CHECK-NEXT:           Struct Version:       0x14151617
128 # CHECK-NEXT:           File Version High:    0x18191A1B
129 # CHECK-NEXT:           File Version Low:     0x1C1D1E1F
130 # CHECK-NEXT:           Product Version High: 0x20212223
131 # CHECK-NEXT:           Product Version Low:  0x24252627
132 # CHECK-NEXT:           File Flags Mask:      0x28292A2B
133 # CHECK-NEXT:           File Flags:           0x2C2D2E2F
134 # CHECK-NEXT:           File OS:              0x30313233
135 # CHECK-NEXT:           File Type:            0x34353637
136 # CHECK-NEXT:           File Subtype:         0x38393A3B
137 # CHECK-NEXT:           File Date High:       0x3C3D3E3F
138 # CHECK-NEXT:           File Date Low:        0x40414243
139 # CHECK-NEXT:         CodeView Record: '44454647'
140 # CHECK-NEXT:         Misc Record:     48494A4B
141 # CHECK-NEXT:       - Base of Image:   0x4C4D4E4F50515253
142 # CHECK-NEXT:         Size of Image:   0x54555657
143 # CHECK-NEXT:         Module Name:     libb.so
144 # CHECK-NEXT:         CodeView Record: 58595A5B
145 # CHECK-NEXT:   - Type:            ThreadList
146 # CHECK-NEXT:     Threads:
147 # CHECK-NEXT:       - Thread Id:         0x5C5D5E5F
148 # CHECK-NEXT:         Priority Class:    0x60616263
149 # CHECK-NEXT:         Environment Block: 0x6465666768696A6B
150 # CHECK-NEXT:         Context:           7C7D7E7F80818283
151 # CHECK-NEXT:         Stack:
152 # CHECK-NEXT:           Start of Memory Range: 0x6C6D6E6F70717273
153 # CHECK-NEXT:           Content:               7475767778797A7B
154 # CHECK-NEXT:   - Type:            Exception
155 # CHECK-NEXT:     Thread ID:       0x7
156 # CHECK-NEXT:     Exception Record:
157 # CHECK-NEXT:       Exception Code:       0x10
158 # CHECK-NEXT:       Exception Flags:      0x5
159 # CHECK-NEXT:       Exception Record:     0x102030405060708
160 # CHECK-NEXT:       Exception Address:    0xA0B0C0D0E0F1011
161 # CHECK-NEXT:       Number of Parameters: 2
162 # CHECK-NEXT:       Parameter 0: 0x22
163 # CHECK-NEXT:       Parameter 1: 0x24
164 # CHECK-NEXT:     Thread Context:  '8182838485868788'
165 # CHECK-NEXT:   - Type:            MemoryList
166 # CHECK-NEXT:     Memory Ranges:
167 # CHECK-NEXT:       - Start of Memory Range: 0x7C7D7E7F80818283
168 # CHECK-NEXT:         Content:               '8485868788'
169 # CHECK-NEXT:  - Type:            Memory64List
170 # CHECK-NEXT:    Memory Ranges:
171 # CHECK-NEXT:      - Start of Memory Range: 0x7FFFFFCF08180283
172 # CHECK-NEXT:        Content:         68656C6C6F776F726C64
173 # CHECK-NEXT:      - Start of Memory Range: 0x7FFAFFCF08180283
174 # CHECK-NEXT:        Content:         '8008000000000000'
175 # CHECK-NEXT:   - Type:            MemoryInfoList
176 # CHECK-NEXT:     Memory Ranges:
177 # CHECK-NEXT:       - Base Address:       0x0
178 # CHECK-NEXT:         Allocation Protect: [  ]
179 # CHECK-NEXT:         Region Size:        0x10000
180 # CHECK-NEXT:         State:              [ MEM_FREE ]
181 # CHECK-NEXT:         Protect:            [ PAGE_NO_ACCESS ]
182 # CHECK-NEXT:         Type:               [  ]
183 # CHECK-NEXT:       - Base Address:       0x10000
184 # CHECK-NEXT:         Allocation Protect: [ PAGE_READ_WRITE ]
185 # CHECK-NEXT:         Region Size:        0x10000
186 # CHECK-NEXT:         State:              [ MEM_COMMIT ]
187 # CHECK-NEXT:         Type:               [ MEM_MAPPED ]
188 # CHECK-NEXT:       - Base Address:       0x20000
189 # CHECK-NEXT:         Allocation Base:    0x0
190 # CHECK-NEXT:         Allocation Protect: [ PAGE_READ_WRITE, PAGE_WRITECOMBINE ]
191 # CHECK-NEXT:         Reserved0:          0xDEADBEEF
192 # CHECK-NEXT:         Region Size:        0x10000
193 # CHECK-NEXT:         State:              [ MEM_COMMIT, MEM_FREE ]
194 # CHECK-NEXT:         Type:               [ MEM_PRIVATE, MEM_MAPPED ]
195 # CHECK-NEXT:         Reserved1:          0xBAADF00D
196 # CHECK-NEXT: ...