xref: /llvm-project/lldb/test/Shell/Unwind/unaligned-pc-sigbus.test (revision f090801a9651cf4f0d05cc361a2a1b14805b62bf)
1# REQUIRES: target-aarch64 && native
2# UNSUPPORTED: system-windows
3# llvm.org/pr91610, rdar://128031075
4# XFAIL: system-darwin
5
6# RUN: %clang_host %S/Inputs/unaligned-pc-sigbus.c -o %t
7# RUN: %lldb -s %s -o exit %t | FileCheck %s
8
9# Convert EXC_BAD_ACCESS into SIGBUS on darwin.
10settings set platform.plugin.darwin.ignored-exceptions EXC_BAD_ACCESS
11
12breakpoint set -n sigbus_handler
13# CHECK: Breakpoint 1: where = {{.*}}`sigbus_handler
14
15run
16# CHECK: thread #1, {{.*}} stop reason = signal SIGBUS
17
18thread backtrace
19# CHECK: (lldb) thread backtrace
20# CHECK: frame #0: [[TARGET:0x[0-9a-fA-F]*]] {{.*}}`target_function
21
22continue
23# CHECK: thread #1, {{.*}} stop reason = breakpoint 1
24
25
26thread backtrace
27# CHECK: (lldb) thread backtrace
28# CHECK: frame #0: {{.*}}`sigbus_handler
29# Unknown number of signal trampoline frames
30# CHECK: frame #{{[0-9]+}}: [[TARGET]] {{.*}}`target_function
31
32