brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · 9fbd294 Raw
54 lines · plain
1# RUN: yaml2obj %S/Inputs/stack-cfi-parsing.yaml -o %t2# RUN: %lldb -c %t -o "target symbols add %S/Inputs/stack-cfi-parsing.syms" \3# RUN:   -s %s -b | FileCheck %s4 5image show-unwind -n func06# CHECK-LABEL: image show-unwind -n func07# 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 CFI11# 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-2)15# CHECK-NEXT: row[0]:    0: CFA=DW_OP_breg7 +0 => rbp=DW_OP_breg7 +0 rip=DW_OP_pick 0x016# CHECK-NEXT: row[1]:    1: CFA=DW_OP_breg7 +0 => rbx=DW_OP_breg2 +0 rbp=DW_OP_breg0 +0 rip=DW_OP_pick 0x017 18# The following plans are all (syntactically) invalid for various reasons.19# Processing those should not cause a crash.20 21image show-unwind -n func222# CHECK-LABEL: image show-unwind -n func223# CHECK-NOT: Symbol file24 25image show-unwind -n func326# CHECK-LABEL: image show-unwind -n func327# CHECK-NOT: Symbol file28 29image show-unwind -n func430# CHECK-LABEL: image show-unwind -n func431# CHECK-NOT: Symbol file32 33image show-unwind -n func534# CHECK-LABEL: image show-unwind -n func535# CHECK-NOT: Symbol file36 37image show-unwind -n func638# CHECK-LABEL: image show-unwind -n func639# CHECK-NOT: Symbol file40 41image show-unwind -n func742# CHECK-LABEL: image show-unwind -n func743# CHECK-NOT: Symbol file44 45# Finally, try an unwind plan with just a single row46image show-unwind -n func947# CHECK-LABEL: image show-unwind -n func948# 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-10)52# CHECK: row[0]:    0: CFA=DW_OP_breg6 +0 => rip=DW_OP_breg0 +053 54