xref: /llvm-project/lldb/test/Shell/Unwind/prefer-debug-over-eh-frame.test (revision fae704bad90077a22e4534222903a6b03407650e)
1# Test that we prefer debug_frame over eh_frame unwind plans. They usually
2# contain the same information, and we rarely have both kinds of entries for a
3# single function. However, in theory the debug_frame plan can be more complete,
4# whereas eh_frame is only required to be correct at places where exceptions can
5# be thrown.
6
7# UNSUPPORTED: system-windows
8# XFAIL: system-darwin
9# REQUIRES: target-x86_64, native
10
11# RUN: %clang_host -g %p/Inputs/call-asm.c %p/Inputs/prefer-debug-over-eh-frame.s -o %t
12# RUN: %lldb %t -s %s -o exit | FileCheck %s
13
14breakpoint set -n bar
15# CHECK: Breakpoint 1: where = {{.*}}`bar
16
17process launch
18# CHECK: stop reason = breakpoint 1.1
19
20target modules show-unwind -n foo
21# CHECK: Asynchronous (not restricted to call-sites) UnwindPlan is 'DWARF CFI plus augmentation from assembly parsing'
22# CHECK: Synchronous (restricted to call-sites) UnwindPlan is 'DWARF CFI'
23# CHECK: eh_frame UnwindPlan:
24# CHECK: debug_frame UnwindPlan:
25