[Lldb-commits] [lldb] [lldb][Process/FreeBSDKernel] Fix broken debugging on aarch64 (PR #180222)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 12 02:24:44 PST 2026


================
@@ -108,3 +161,39 @@ bool RegisterContextFreeBSDKernel_arm64::WriteRegister(
     const RegisterInfo *reg_info, const RegisterValue &value) {
   return false;
 }
+
+int RegisterContextFreeBSDKernel_arm64::GetOsreldate() {
+  ProcessSP process_sp = m_thread.GetProcess();
+  if (!process_sp)
+    return 0;
----------------
DavidSpickett wrote:

Not sure if you'll ever hit this line but if you did, would it make more sense to default to 14 here? Given that if you cannot find osreldate, you default to 14.

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


More information about the lldb-commits mailing list