2 # DEBUG: cd %S/../../../../../examples/python && cat %s | %lldb && false
3 # RUN: cd %S/../../../../../examples/python && cat %s | %lldb | FileCheck %s
4 # CHECK-LABEL: {{S}}KIP BEYOND CHECKS
7 crash_log_parser = crashlog.TextCrashLogParser
8 crash_log = crashlog.CrashLog
10 "0x10b60b000 - 0x10f707fff com.apple.LLDB.framework (1.1000.11.38.2 - 1000.11.38.2) <96E36F5C-1A83-39A1-8713-5FDD9701C3F1> /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/LLDB",
13 # CHECK: com.apple.LLDB.framework
14 # CHECK: 96E36F5C-1A83-39A1-8713-5FDD9701C3F1
15 # CHECK: /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/LLDB
17 "0x104591000 - 0x1055cfff7 +llvm-dwarfdump (0) <B104CFA1-046A-36A6-8EB4-07DDD7CC2DF3> /Users/USER 1/Documents/*/llvm-dwarfdump",
20 # CHECK: llvm-dwarfdump
22 # CHECK: B104CFA1-046A-36A6-8EB4-07DDD7CC2DF3
23 # CHECK: /Users/USER 1/Documents/*/llvm-dwarfdump
25 "0x7fff63f20000 - 0x7fff63f77ff7 libc++.1.dylib (400.9.4) <D4AB366F-48A9-3C7D-91BD-41198F69DD57> /usr/lib/libc++.1.dylib",
26 # CHECK: 0x7fff63f20000
27 # CHECK: 0x7fff63f77ff7
28 # CHECK: libc++.1.dylib
30 # CHECK: D4AB366F-48A9-3C7D-91BD-41198F69DD57
31 # CHECK: /usr/lib/libc++.1.dylib
33 "0x1111111 - 0x22222 +MyApp Pro arm64 <01234> /tmp/MyApp Pro.app/MyApp Pro",
39 # CHECK: /tmp/MyApp Pro.app/MyApp Pro
41 "0x1111111 - 0x22222 +MyApp Pro (0) <01234> /tmp/MyApp Pro.app/MyApp Pro",
47 # CHECK: /tmp/MyApp Pro.app/MyApp Pro
49 "0x1111111 - 0x2222222 MyFramework Plus.dylib (1.11 - MyFramework 1.11) <01234> /tmp/MyFramework Plus.dylib",
52 # CHECK: MyFramework Plus.dylib
54 # CHECK: 1.11 - MyFramework 1.11
56 # CHECK: /tmp/MyFramework Plus.dylib
58 "0x1111111 - 0x2222222 MyFramework-dev.dylib (1.0.0svn - 1.0.0svn) <01234> /MyFramework-dev.dylib",
61 # CHECK: MyFramework-dev.dylib
63 # CHECK: 1.0.0svn - 1.0.0svn
65 # CHECK: /MyFramework-dev.dylib
67 "0x7fff63f20000 - 0x7fff63f77ff7 libc++.1.dylib (400.9.4) /usr/lib/libc++.1.dylib",
68 # CHECK: 0x7fff63f20000
69 # CHECK: 0x7fff63f77ff7
70 # CHECK: libc++.1.dylib
74 # CHECK: /usr/lib/libc++.1.dylib
76 "0x1047b8000 - 0x10481ffff dyld arm64e <cfa789d10da63f9a8996daf84ed9d04f> /usr/lib/dyld"
82 # CHECK: cfa789d10da63f9a8996daf84ed9d04f
83 # CHECK: /usr/lib/dyld
87 "0 libsystem_kernel.dylib 0x00007fff684b78a6 read + 10",
89 # CHECK: libsystem_kernel.dylib
90 # CHECK: 0x00007fff684b78a6
92 "1 com.apple.LLDB.framework 0x000000010f7954af lldb_private::HostNativeThreadBase::ThreadCreateTrampoline(void*) + 105",
94 # CHECK: com.apple.LLDB.framework
95 # CHECK: 0x000000010f7954af
96 # CHECK: lldb_private{{.*}} + 105
97 "2 MyApp Pro arm64 0x000000019b0db3a8 foo + 72",
100 # CHECK: 0x000000019b0db3a8
102 "3 He 0x1 0x000000019b0db3a8 foo + 72"
105 # CHECK: 0x000000019b0db3a8
110 # Avoid matching the text inside the input.
111 print("SKIP BEYOND CHECKS")
114 print("--------------")
115 match = crash_log_parser.image_regex_uuid.search(image)
116 for group in match.groups():
122 print("--------------")
123 match = crash_log_parser.frame_regex.search(frame)
124 for group in match.groups():