1# Test that symbol contexts for trap handler frames are set correctly even when
2# the pc is at the start of the function.
3
4# UNSUPPORTED: system-windows
5# REQUIRES: target-x86_64, native
6
7# RUN: %clang_host %p/Inputs/call-asm.c %p/Inputs/trap_frame_sym_ctx.s -o %t
8# RUN: %lldb %t -s %s -o exit | FileCheck %s
9
10settings append target.trap-handler-names tramp
11
12breakpoint set -n bar
13# CHECK: Breakpoint 1: where = {{.*}}`bar
14
15process launch
16# CHECK: stop reason = breakpoint 1.1
17
18thread backtrace
19# CHECK: frame #0: {{.*}}`bar
20# CHECK: frame #1: {{.*}}`tramp
21# CHECK: frame #2: {{.*}}`main
22