brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · d5c6d91 Raw
22 lines · plain
1# RUN: %clang_host -g %S/Inputs/test.c -o %t.out2 3# RUN: cp %S/Inputs/a.out.ips %t.crash4# RUN: %python %S/patch-crashlog.py --binary %t.out --crashlog %t.crash --offsets '{"main":20, "bar":9, "foo":16}' --json5# RUN: %lldb %t.out -o 'command script import lldb.macosx.crashlog' -o 'crashlog --mode batch %t.crash' 2>&1 | FileCheck %s6# RUN: %lldb %t.out -o 'command script import lldb.macosx.crashlog' -o 'crashlog --mode batch -c %t.crash' 2>&1 | FileCheck %s7 8# RUN: cp %S/Inputs/a.out.ips %t.nometadata.crash9# RUN: %python %S/patch-crashlog.py --binary %t.out --crashlog %t.nometadata.crash --offsets '{"main":20, "bar":9, "foo":16}' --json --no-metadata10# RUN: %lldb %t.out -o 'command script import lldb.macosx.crashlog' -o 'crashlog --mode batch %t.nometadata.crash' 2>&1 | FileCheck %s11 12# CHECK: "crashlog" {{.*}} commands have been installed, use the "--help" options on these commands13 14# CHECK: Thread[0] Crashing Thread Name EXC_BAD_ACCESS (SIGSEGV) (KERN_INVALID_ADDRESS at 0x0000000000000000)15# CHECK: [  0] {{.*}}out`foo + 16 at test.c16# CHECK: [  1] {{.*}}out`bar + 8 at test.c17# CHECK: [  2] {{.*}}out`main + 19 at test.c18# CHECK: rbp = 0x00007ffeec22a53019# CHECK: tmp2 = 0x000000000000000820# CHECK: invalid foo21# CHECK: invalid bar22