24 lines · plain
1# Test that lldb is able to unwind out of a function which is in between two2# parts of a split function. This tests a specific bug where lldb would not find3# unwind info for the "inner" function if it encountered if after the split4# function. The presence of debug info is important for this test.5 6# REQUIRES: system-linux, native7# REQUIRES: target-x86_648 9# RUN: %clang_host %S/Inputs/basic-block-sections-with-dwarf.s -o %t10# RUN: %lldb %t -s %s -o exit | FileCheck %s11 12breakpoint set -n baz13# CHECK: Breakpoint 1: where = {{.*}}`baz14 15process launch16# CHECK: stop reason = breakpoint 117 18thread backtrace19# CHECK: frame #0: {{.*}}`baz20# CHECK: frame #1: {{.*}}`foo(flag=0)21# CHECK: frame #2: {{.*}}`bar22# CHECK: frame #3: {{.*}}`foo(flag=1)23# CHECK: frame #4: {{.*}}`main24