aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Unwind/basic-block-sections-with-dwarf.test
blob: 5aa531f80558a54e8f896ad2119d82c78ad86b5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Test that lldb is able to unwind out of a function which is in between two
# parts of a split function. This tests a specific bug where lldb would not find
# unwind info for the "inner" function if it encountered if after the split
# function. The presence of debug info is important for this test.

# REQUIRES: system-linux, native
# REQUIRES: target-x86_64

# RUN: %clang_host %S/Inputs/basic-block-sections-with-dwarf.s -o %t
# RUN: %lldb %t -s %s -o exit | FileCheck %s

breakpoint set -n baz
# CHECK: Breakpoint 1: where = {{.*}}`baz

process launch
# CHECK: stop reason = breakpoint 1

thread backtrace
# CHECK: frame #0: {{.*}}`baz
# CHECK: frame #1: {{.*}}`foo(flag=0)
# CHECK: frame #2: {{.*}}`bar
# CHECK: frame #3: {{.*}}`foo(flag=1)
# CHECK: frame #4: {{.*}}`main