[Lldb-commits] [lldb] [lldb/aarch64] Allow unaligned PC addresses below a trap handler (PR #92093)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue May 14 03:10:08 PDT 2024


================
@@ -0,0 +1,26 @@
+# REQUIRES: (target-aarch64 || target-arm) && native
+# UNSUPPORTED: system-windows
+
+# RUN: %clang_host %S/Inputs/unaligned-pc-sigbus.c -o %t
+# RUN: %lldb -s %s -o exit %t | FileCheck %s
+
+breakpoint set -n sigbus_handler
+# CHECK: Breakpoint 1: where = {{.*}}`sigbus_handler
+
+run
+# CHECK: thread #1, {{.*}} stop reason = signal SIGBUS
----------------
labath wrote:

I'm guessing I'll also need to forward some mach exception to make this work. Would that be EXC_BAD_ACCESS?

https://github.com/llvm/llvm-project/pull/92093


More information about the lldb-commits mailing list