xref: /llvm-project/lldb/test/Shell/Minidump/fb-dump.test (revision b587ca93be114d07ec3bf654add97d7872325281)
1# RUN: yaml2obj %s -o %t
2# RUN: %lldb -c %t -o 'process plugin dump --all' | \
3# RUN:   FileCheck --check-prefix=CHECK-DIR --check-prefix=CHECK-APPDATA \
4# RUN:   --check-prefix=CHECK-BUILD --check-prefix=CHECK-VERSION \
5# RUN:   --check-prefix=CHECK-JAVA --check-prefix=CHECK-DALVIK \
6# RUN:   --check-prefix=CHECK-UNWIND --check-prefix=CHECK-ERROR \
7# RUN:   --check-prefix=CHECK-APPSTATE --check-prefix=CHECK-ABORT \
8# RUN:   --check-prefix=CHECK-THREAD --check-prefix=CHECK-LOGCAT %s
9# RUN: %lldb -c %t -o 'process plugin dump -a' | \
10# RUN:   FileCheck --check-prefix=CHECK-DIR --check-prefix=CHECK-APPDATA \
11# RUN:   --check-prefix=CHECK-BUILD --check-prefix=CHECK-VERSION \
12# RUN:   --check-prefix=CHECK-JAVA --check-prefix=CHECK-DALVIK \
13# RUN:   --check-prefix=CHECK-UNWIND --check-prefix=CHECK-ERROR \
14# RUN:   --check-prefix=CHECK-APPSTATE --check-prefix=CHECK-ABORT \
15# RUN:   --check-prefix=CHECK-THREAD --check-prefix=CHECK-LOGCAT %s
16# RUN: %lldb -c %t -o 'process plugin dump --facebook' | \
17# RUN:   FileCheck --check-prefix=CHECK-APPDATA \
18# RUN:   --check-prefix=CHECK-BUILD --check-prefix=CHECK-VERSION \
19# RUN:   --check-prefix=CHECK-JAVA --check-prefix=CHECK-DALVIK \
20# RUN:   --check-prefix=CHECK-UNWIND --check-prefix=CHECK-ERROR \
21# RUN:   --check-prefix=CHECK-APPSTATE --check-prefix=CHECK-ABORT \
22# RUN:   --check-prefix=CHECK-THREAD --check-prefix=CHECK-LOGCAT %s
23# RUN: %lldb -c %t -o 'process plugin dump --fb-app-data' | \
24# RUN:   FileCheck --check-prefix=CHECK-APPDATA %s
25# RUN: %lldb -c %t -o 'process plugin dump --fb-build-id' | \
26# RUN:   FileCheck --check-prefix=CHECK-BUILD %s
27# RUN: %lldb -c %t -o 'process plugin dump --fb-version' | \
28# RUN:   FileCheck --check-prefix=CHECK-VERSION %s
29# RUN: %lldb -c %t -o 'process plugin dump --fb-java-stack' | \
30# RUN:   FileCheck --check-prefix=CHECK-JAVA %s
31# RUN: %lldb -c %t -o 'process plugin dump --fb-dalvik-info' | \
32# RUN:   FileCheck --check-prefix=CHECK-DALVIK %s
33# RUN: %lldb -c %t -o 'process plugin dump --fb-unwind-symbols' | \
34# RUN:   FileCheck --check-prefix=CHECK-UNWIND %s
35# RUN: %lldb -c %t -o 'process plugin dump --fb-error-log' | \
36# RUN:   FileCheck --check-prefix=CHECK-ERROR %s
37# RUN: %lldb -c %t -o 'process plugin dump --fb-app-state-log' | \
38# RUN:   FileCheck --check-prefix=CHECK-APPSTATE %s
39# RUN: %lldb -c %t -o 'process plugin dump --fb-abort-reason' | \
40# RUN:   FileCheck --check-prefix=CHECK-ABORT %s
41# RUN: %lldb -c %t -o 'process plugin dump --fb-thread-name' | \
42# RUN:   FileCheck --check-prefix=CHECK-THREAD %s
43# RUN: %lldb -c %t -o 'process plugin dump --fb-logcat' | \
44# RUN:   FileCheck --check-prefix=CHECK-LOGCAT %s
45# CHECK-DIR:      RVA        SIZE       TYPE       StreamType
46# CHECK-DIR-NEXT: ---------- ---------- ---------- --------------------------
47# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000038 0x00000007 SystemInfo
48# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000018 0x0000000f MiscInfo
49# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000013 0xfacecb00 FacebookDumpErrorLog
50# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000015 0xfacee000 FacebookThreadName
51# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000010 0xface1ca7 FacebookLogcat
52# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000017 0xfacecccc FacebookAppStateLog
53# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000016 0xfacedead FacebookAbortReason
54# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000039 0xfacecafa FacebookAppCustomData
55# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000005 0xfacecafb FacebookBuildID
56# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x0000000d 0xfacecafc FacebookAppVersionName
57# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000019 0xfacecafd FacebookJavaStack
58# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000015 0xfacecafe FacebookDalvikInfo
59# CHECK-DIR-NEXT: 0x{{[0-9a-f]{8} }}0x00000005 0xfacecaff FacebookUnwindSymbols
60
61--- !minidump
62Streams:
63  - Type:            SystemInfo
64    Processor Arch:  BP_ARM64
65    Platform ID:     Linux
66    CSD Version:     '15E216'
67    CPU:
68      CPUID:           0x00000000
69  - Type:            MiscInfo
70    Content:         00000000010000007B000000000000000000000000000000
71  - Type:            FacebookDumpErrorLog
72    Content:         46616365626F6F6B206572726F72206C6F6700
73  - Type:            FacebookThreadName
74    Content:         46616365626F6F6B20746872656164206E616D6500
75  - Type:            FacebookLogcat
76    Content:         46616365626F6F6B206C6F6763617400
77  - Type:            FacebookAppStateLog
78    Content:         46616365626F6F6B20617070207374617465206C6F6700
79  - Type:            FacebookAbortReason
80    Content:         46616365626F6F6B2061626F727420726561736F6E00
81  - Type:            FacebookAppCustomData
82    Content:         7B22676C6F62616C223A207B2246696E6765727072696E74223A22696E76616C6964206465766963652066696E6765727072696E74227D7D00
83  - Type:            FacebookBuildID
84    Content:         '0403020100'
85  - Type:            FacebookAppVersionName
86    Content:         3230372E302E302E302E383600
87  - Type:            FacebookJavaStack
88    Content:         46616365626F6F6B206A61766120737461636B20696E666F00
89  - Type:            FacebookDalvikInfo
90    Content:         46616365626F6F6B2064616C76696B20696E666F00
91  - Type:            FacebookUnwindSymbols
92    Content:         '1122334400'
93...
94
95# CHECK-APPDATA:      Facebook App Data:
96# CHECK-APPDATA-NEXT: {"global": {"Fingerprint":"invalid device fingerprint"}}
97
98# CHECK-BUILD:      Facebook Build ID:
99# CHECK-BUILD-NEXT: 16909060
100
101# CHECK-VERSION:      Facebook Version String:
102# CHECK-VERSION-NEXT: 207.0.0.0.86
103
104# CHECK-JAVA:      Facebook Java Stack:
105# CHECK-JAVA-NEXT: Facebook java stack info
106
107# CHECK-DALVIK:      Facebook Dalvik Info:
108# CHECK-DALVIK-NEXT: Facebook dalvik info
109
110# CHECK-UNWIND:      Facebook Unwind Symbols Bytes:
111# CHECK-UNWIND-NEXT: 0x00000000: 11 22 33 44 00
112
113# CHECK-ERROR:      Facebook Error Log:
114# CHECK-ERROR-NEXT: Facebook error log
115
116# CHECK-APPSTATE:      Faceook Application State Log:
117# CHECK-APPSTATE-NEXT: Facebook app state log
118
119# CHECK-ABORT:      Facebook Abort Reason:
120# CHECK-ABORT-NEXT: Facebook abort reason
121
122# CHECK-THREAD:      Facebook Thread Name:
123# CHECK-THREAD-NEXT: Facebook thread name
124
125# CHECK-LOGCAT:      Facebook Logcat:
126# CHECK-LOGCAT-NEXT: Facebook logcat
127