[Lldb-commits] [lldb] [lldb][AArch64] Fix expression evaluation with Guarded Control Stacks (PR #123918)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 24 00:55:48 PST 2025


================
@@ -103,6 +156,9 @@ bool ABISysV_arm64::PrepareTrivialCall(Thread &thread, addr_t sp,
           return_addr))
     return false;
 
+  if (GetProcessSP()->GetTarget().GetArchitecture().GetTriple().isOSLinux())
+    PushToLinuxGuardedControlStack(return_addr, reg_ctx, thread);
----------------
DavidSpickett wrote:

Yeah not sure why I made it return bool then did nothing with it...

You're right, all we can do at that point is error. If we continue without setting it up we will just hit an exception and the expression fails in a cryptic way.

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


More information about the lldb-commits mailing list