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
10 Processor Arch: BP_ARM64
12 CSD Version: Linux 3.13.0-91-generic
16 Content: DEADBEEFBAADF00D
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
24 - Base of Image: 0x0001020304050607
25 Size of Image: 0x08090A0B
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
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
48 CodeView Record: '58595A5B'
51 - Thread Id: 0x5C5D5E5F
52 Priority Class: 0x60616263
53 Environment Block: 0x6465666768696A6B
54 Context: '7C7D7E7F80818283'
56 Start of Memory Range: 0x6C6D6E6F70717273
57 Content: '7475767778797A7B'
63 Exception Record: 0x0102030405060708
64 Exception Address: 0x0A0B0C0D0E0F1011
65 Number of Parameters: 2
68 Thread Context: '8182838485868788'
71 - Start of Memory Range: 0x7C7D7E7F80818283
73 - Type: MemoryInfoList
75 - Base Address: 0x0000000000000000
76 Allocation Protect: [ ]
77 Region Size: 0x0000000000010000
79 Protect: [ PAGE_NO_ACCESS ]
81 - Base Address: 0x0000000000010000
82 Allocation Protect: [ PAGE_READ_WRITE ]
83 Region Size: 0x0000000000010000
86 - Base Address: 0x0000000000020000
87 Allocation Base: 0x0000000000000000
88 Allocation Protect: [ PAGE_READ_WRITE, PAGE_WRITECOMBINE ]
90 Region Size: 0x0000000000010000
91 State: [ MEM_COMMIT, MEM_FREE ]
92 Type: [ MEM_PRIVATE, MEM_MAPPED ]
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
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
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
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