|
4 | 4 |
|
5 | 5 | # RUN: cp %S/Inputs/scripted_crashlog.ips %t.crash
|
6 | 6 | # RUN: %python %S/patch-crashlog.py --binary %t.out --crashlog %t.crash --offsets '{"main":160, "bar":20, "foo":24}' --json
|
7 |
| -# RUN: %lldb %t.out -o 'command script import lldb.macosx.crashlog' -o 'crashlog -a -i %t.crash' 2>&1 -o "bt all" | FileCheck %s |
| 7 | +# RUN: %lldb %t.out -o 'command script import lldb.macosx.crashlog' -o 'crashlog -a -i %t.crash' 2>&1 -o "thread list" -o "bt all" | FileCheck %s |
8 | 8 |
|
9 | 9 | # CHECK: "crashlog" {{.*}} commands have been installed, use the "--help" options on these commands
|
10 | 10 |
|
11 | 11 | # CHECK: (lldb) process status
|
12 | 12 | # CHECK-NEXT: Process 24991 stopped
|
13 |
| -# CHECK-NEXT: * thread #3, name = 'CrashLogScriptedThread.thread-2', stop reason = EXC_BAD_ACCESS |
| 13 | +# CHECK-NEXT: * thread #3, stop reason = EXC_BAD_ACCESS |
14 | 14 | # CHECK-NEXT: frame #0: 0x00000001047f5970 scripted_crashlog_json.test.tmp.out`bar
|
15 | 15 |
|
16 | 16 | # CHECK: (lldb) thread backtrace
|
17 |
| -# CHECK-NEXT: * thread #3, name = 'CrashLogScriptedThread.thread-2', stop reason = EXC_BAD_ACCESS |
| 17 | +# CHECK-NEXT: * thread #3, stop reason = EXC_BAD_ACCESS |
18 | 18 | # CHECK-NEXT: * frame #0: 0x00000001047f5970 scripted_crashlog_json.test.tmp.out`bar
|
19 | 19 | # CHECK-NEXT: frame #1: 0x00000001047f5998 scripted_crashlog_json.test.tmp.out`foo
|
20 | 20 | # CHECK-NEXT: frame #2: 0x00000001047f5b04 scripted_crashlog_json.test.tmp.out`compute_pow
|
|
24 | 24 | # CHECK-NEXT: frame #6: 0x000000018bf5326c libsystem_pthread.dylib`_pthread_start
|
25 | 25 | # CHECK-NEXT: frame #7: 0x000000018bf4e08c libsystem_pthread.dylib`thread_start
|
26 | 26 |
|
| 27 | +# CHECK: (lldb) thread list |
| 28 | +# CHECK-NEXT: Process 24991 stopped |
| 29 | +# CHECK-NEXT: thread #1: tid = 0x4ea840, 0x000000018bf17854 libsystem_kernel.dylib`__ulock_wait{{.*}}, queue = 'com.apple.main-thread' |
| 30 | +# CHECK-NEXT: thread #2: tid = 0x4ea850, 0x00000001047f59e8 scripted_crashlog_json.test.tmp.out`call_and_wait |
| 31 | +# CHECK-NEXT: * thread #3: tid = 0x4ea851, 0x00000001047f5970 scripted_crashlog_json.test.tmp.out`bar{{.*}}, stop reason = EXC_BAD_ACCESS |
| 32 | + |
| 33 | + |
27 | 34 | # CHECK: (lldb) bt all
|
28 |
| -# CHECK-NEXT: thread #1, name = 'CrashLogScriptedThread.thread-0' |
| 35 | +# CHECK-NEXT: thread #1 |
29 | 36 | # CHECK-NEXT: frame #0: 0x000000018bf17854 libsystem_kernel.dylib`__ulock_wait
|
30 | 37 | # CHECK-NEXT: frame #1: 0x000000018bf555a0 libsystem_pthread.dylib`_pthread_join
|
31 | 38 | # CHECK-NEXT: frame #2: 0x000000018beae9c0 libc++.1.dylib`std::__1::thread::join
|
32 | 39 | # CHECK-NEXT: frame #3: 0x00000001047f5bb8 scripted_crashlog_json.test.tmp.out`main
|
33 | 40 | # CHECK-NEXT: frame #4: 0x0000000104ae5088 dyld`start
|
34 |
| -# CHECK-NEXT: thread #2, name = 'CrashLogScriptedThread.thread-1' |
| 41 | +# CHECK-NEXT: thread #2 |
35 | 42 | # CHECK-NEXT: frame #0: 0x00000001047f59e8 scripted_crashlog_json.test.tmp.out`call_and_wait
|
36 | 43 | # CHECK-NEXT: frame #1: 0x00000001047f59d4 scripted_crashlog_json.test.tmp.out`call_and_wait
|
37 | 44 | # CHECK-NEXT: frame #2: 0x00000001047f7690 scripted_crashlog_json.test.tmp.out`decltype
|
38 | 45 | # CHECK-NEXT: frame #3: 0x00000001047f7614 scripted_crashlog_json.test.tmp.out`void std::__1::__thread_execute
|
39 | 46 | # CHECK-NEXT: frame #4: 0x00000001047f6d58 scripted_crashlog_json.test.tmp.out`void* std::__1::__thread_proxy
|
40 | 47 | # CHECK-NEXT: frame #5: 0x000000018bf5326c libsystem_pthread.dylib`_pthread_start
|
41 | 48 | # CHECK-NEXT: frame #6: 0x000000018bf4e08c libsystem_pthread.dylib`thread_start
|
42 |
| -# CHECK-NEXT: * thread #3, name = 'CrashLogScriptedThread.thread-2', stop reason = EXC_BAD_ACCESS |
| 49 | +# CHECK-NEXT: * thread #3, stop reason = EXC_BAD_ACCESS |
43 | 50 | # CHECK-NEXT: * frame #0: 0x00000001047f5970 scripted_crashlog_json.test.tmp.out`bar
|
44 | 51 | # CHECK-NEXT: frame #1: 0x00000001047f5998 scripted_crashlog_json.test.tmp.out`foo
|
45 | 52 | # CHECK-NEXT: frame #2: 0x00000001047f5b04 scripted_crashlog_json.test.tmp.out`compute_pow
|
|
0 commit comments