The llvm DWARFExpression dump is nearly identical, but better -- for example it does print a spurious space after zero-argument expressions. Some parts of our code (variable locations) have been already switched to llvm-based expression dumping. This switches the remainder: unwind plans and some unit tests.
15 lines
443 B
Plaintext
15 lines
443 B
Plaintext
# REQUIRES: target-x86_64, system-linux, native
|
|
|
|
# RUN: %clang_host %p/Inputs/unwind-plan-dwarf-dump.s -o %t
|
|
# RUN: %lldb %t -s %s -o exit | FileCheck %s
|
|
|
|
breakpoint set -n main
|
|
# CHECK: Breakpoint 1:
|
|
|
|
process launch
|
|
# CHECK: stop reason = breakpoint 1.1
|
|
|
|
target modules show-unwind -n main
|
|
# CHECK: eh_frame UnwindPlan:
|
|
# CHECK: row[0]: 0: CFA=DW_OP_breg7 +0, DW_OP_const1u 0x0, DW_OP_plus => rip=DW_OP_const1s -8, DW_OP_plus, DW_OP_deref
|