[Lldb-commits] [lldb] [lldb] Fix TestPtrauthBRAADiagnostic.py (PR #196406)
via lldb-commits
lldb-commits at lists.llvm.org
Thu May 7 12:53:40 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Alex Langford (bulbazord)
<details>
<summary>Changes</summary>
The test does actually detect the pointer authentication issue and should check for that.
---
Full diff: https://github.com/llvm/llvm-project/pull/196406.diff
1 Files Affected:
- (modified) lldb/test/API/functionalities/ptrauth_diagnostics/BRAA_error/braa.c (+2-3)
``````````diff
diff --git a/lldb/test/API/functionalities/ptrauth_diagnostics/BRAA_error/braa.c b/lldb/test/API/functionalities/ptrauth_diagnostics/BRAA_error/braa.c
index c53f4725164e6..c1da569d59bc6 100644
--- a/lldb/test/API/functionalities/ptrauth_diagnostics/BRAA_error/braa.c
+++ b/lldb/test/API/functionalities/ptrauth_diagnostics/BRAA_error/braa.c
@@ -3,9 +3,7 @@ void foo() {}
int main() {
//% self.filecheck("c", "braa.c")
// CHECK: stop reason = EXC_BAD_ACCESS
- //
- // TODO: We need call site info support for indirect calls to make this work.
- // CHECK-NOT: pointer authentication failure
+ // CHECK-NEXT: pointer authentication failure
asm volatile (
"mov x9, #0xbad \n"
"braa %[target], x9 \n"
@@ -19,6 +17,7 @@ int main() {
// Expected codegen and exception message without ptrauth diagnostics:
// * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x2000000100007f9c)
+// Note: Possible pointer authentication failure detected.
// frame #0: 0x0000000100007f9c braa`foo
// braa`foo:
// 0x100007f9c <+0>: ret
``````````
</details>
https://github.com/llvm/llvm-project/pull/196406
More information about the lldb-commits
mailing list