1# RUN: yaml2obj %S/Inputs/stack-cfi-parsing.yaml -o %t 2# RUN: %lldb -c %t -o "target symbols add %S/Inputs/stack-cfi-parsing.syms" \ 3# RUN: -s %s -b | FileCheck %s 4 5image show-unwind -n func0 6# CHECK-LABEL: image show-unwind -n func0 7# CHECK: Asynchronous (not restricted to call-sites) UnwindPlan is 'breakpad STACK CFI' 8# CHECK: Synchronous (restricted to call-sites) UnwindPlan is 'breakpad STACK CFI' 9# CHECK: Symbol file UnwindPlan: 10# CHECK-NEXT: This UnwindPlan originally sourced from breakpad STACK CFI 11# CHECK-NEXT: This UnwindPlan is sourced from the compiler: yes. 12# CHECK-NEXT: This UnwindPlan is valid at all instruction locations: no. 13# CHECK-NEXT: This UnwindPlan is for a trap handler function: no. 14# CHECK-NEXT: Address range of this UnwindPlan: [stack-cfi-parsing.out..module_image + 0-0x0000000000000002) 15# CHECK-NEXT: row[0]: 0: CFA=DW_OP_breg7 +0 => rbp=DW_OP_breg7 +0 rip=DW_OP_pick 0x0 16# CHECK-NEXT: row[1]: 1: CFA=DW_OP_breg7 +0 => rbx=DW_OP_breg2 +0 rbp=DW_OP_breg0 +0 rip=DW_OP_pick 0x0 17 18# The following plans are all (syntactically) invalid for various reasons. 19# Processing those should not cause a crash. 20 21image show-unwind -n func2 22# CHECK-LABEL: image show-unwind -n func2 23# CHECK-NOT: Symbol file 24 25image show-unwind -n func3 26# CHECK-LABEL: image show-unwind -n func3 27# CHECK-NOT: Symbol file 28 29image show-unwind -n func4 30# CHECK-LABEL: image show-unwind -n func4 31# CHECK-NOT: Symbol file 32 33image show-unwind -n func5 34# CHECK-LABEL: image show-unwind -n func5 35# CHECK-NOT: Symbol file 36 37image show-unwind -n func6 38# CHECK-LABEL: image show-unwind -n func6 39# CHECK-NOT: Symbol file 40 41image show-unwind -n func7 42# CHECK-LABEL: image show-unwind -n func7 43# CHECK-NOT: Symbol file 44 45# Finally, try an unwind plan with just a single row 46image show-unwind -n func9 47# CHECK-LABEL: image show-unwind -n func9 48# CHECK: Asynchronous (not restricted to call-sites) UnwindPlan is 'breakpad STACK CFI' 49# CHECK: Synchronous (restricted to call-sites) UnwindPlan is 'breakpad STACK CFI' 50# CHECK: Symbol file UnwindPlan: 51# CHECK: Address range of this UnwindPlan: [stack-cfi-parsing.out..module_image + 9-0x000000000000000a) 52# CHECK: row[0]: 0: CFA=DW_OP_breg6 +0 => rip=DW_OP_breg0 +0 53 54