81 lines · plain
1# REQUIRES: python, native && system-darwin2 3# RUN: mkdir -p %t.dir4# RUN: yaml2obj %S/Inputs/interactive_crashlog/multithread-test.yaml > %t.dir/multithread-test5# RUN: %lldb -o 'command script import lldb.macosx.crashlog' \6# RUN: -o 'crashlog -a -t %t.dir/multithread-test %S/Inputs/interactive_crashlog/multithread-test.ips' \7# RUN: -o "thread list" -o "bt all" -o "register read" 2>&1 | FileCheck %s8 9# CHECK: "crashlog" {{.*}} commands have been installed, use the "--help" options on these commands10 11# CHECK: (lldb) process status12# CHECK-NEXT: Process 22511 stopped13# CHECK-NEXT: * thread #3, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)14# CHECK-NEXT: frame #0: 0x0000000100ec58f4 multithread-test`bar15 16# CHECK: (lldb) thread backtrace17# CHECK-NEXT: * thread #3, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)18# CHECK-NEXT: * frame #0: 0x0000000100ec58f4 multithread-test`bar{{.*}} [synthetic]19# CHECK-NEXT: frame #1: 0x0000000100ec591b multithread-test`foo{{.*}} [synthetic]20# CHECK-NEXT: frame #2: 0x0000000100ec5a87 multithread-test`compute_pow{{.*}} [synthetic]21 22# CHECK: (lldb) thread list23# CHECK-NEXT: Process 22511 stopped24# CHECK-NEXT: thread #1: tid = 0x23c7fe, 0x000000019cc40b84{{.*}}, queue = 'com.apple.main-thread'25# CHECK-NEXT: thread #2: tid = 0x23c800, 0x000000019cc42c9c{{.*}}26# CHECK-NEXT: * thread #3: tid = 0x23c801, 0x0000000100ec58f4 multithread-test`bar{{.*}}, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)27 28# CHECK: (lldb) bt all29# CHECK: thread #1, queue = 'com.apple.main-thread'30# CHECK: frame #{{[0-9]+}}: 0x000000019cc40b84{{.*}} [synthetic]31# CHECK: frame #{{[0-9]+}}: 0x0000000100ec5b3b multithread-test`main{{.*}} [synthetic]32# CHECK: frame #{{[0-9]+}}: 0x00000002230f8da7{{.*}} [synthetic]33# CHECK-NEXT: thread #234# CHECK-NEXT: frame #0: 0x000000019cc42c9c{{.*}} [synthetic]35# CHECK: frame #{{[0-9]+}}: 0x0000000100ec5957 multithread-test`call_and_wait{{.*}} [synthetic]36# CHECK: frame #{{[0-9]+}}: 0x000000019cc7e06b{{.*}} [synthetic]37# CHECK: frame #{{[0-9]+}}: 0x000000019cc78e2b{{.*}} [synthetic]38# CHECK-NEXT:* thread #3, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)39# CHECK-NEXT: * frame #0: 0x0000000100ec58f4 multithread-test`bar{{.*}} [synthetic]40# CHECK-NEXT: frame #1: 0x0000000100ec591b multithread-test`foo{{.*}} [synthetic]41# CHECK-NEXT: frame #2: 0x0000000100ec5a87 multithread-test`compute_pow{{.*}} [synthetic]42# CHECK: frame #{{[0-9]+}}: 0x000000019cc7e06b{{.*}} [synthetic]43# CHECK: frame #{{[0-9]+}}: 0x000000019cc78e2b{{.*}} [synthetic]44 45# CHECK: (lldb) register read46# CHECK: General Purpose Registers:47# CHECK: x0 = 0x000000000000002a48# CHECK: x1 = 0x0000600001d291b049# CHECK: x2 = 0x000000019cbbf00050# CHECK: x3 = 0x000000000000000051# CHECK: x4 = 0x00000000000030a052# CHECK: x5 = 0x00000000190008ff53# CHECK: x6 = 0x000000000000000054# CHECK: x7 = 0x000000000000000055# CHECK: x8 = 0x000000000000000156# CHECK: x9 = 0x000000000000000057# CHECK: x10 = 0xfffffffe634277cf58# CHECK: x11 = 0x000001000000010259# CHECK: x12 = 0x000001000000010260# CHECK: x13 = 0x000001000000010061# CHECK: x14 = 0x000001000000000062# CHECK: x15 = 0x000000000000000163# CHECK: x16 = 0x000000019cc78ea864# CHECK: x17 = 0x00000001fd0a769865# CHECK: x18 = 0x000000000000000066# CHECK: x19 = 0x000000016f04f00067# CHECK: x20 = 0x000000000000000068# CHECK: x21 = 0x000000000000000069# CHECK: x22 = 0x000000000000000070# CHECK: x23 = 0x000000000000000071# CHECK: x24 = 0x000000000000000072# CHECK: x25 = 0x000000000000000073# CHECK: x26 = 0x000000000000000074# CHECK: x27 = 0x000000000000000075# CHECK: x28 = 0x000000000000000076# CHECK: x29 = 0x000000016f04ef0077# CHECK: x30 = 0x0000000100ec591c78# CHECK: sp = 0x000000016f04eee079# CHECK: pc = 0x0000000100ec58f480# CHECK: cpsr = 0x8000100081