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

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 9 02:01:13 PST 2026


================
@@ -108,3 +157,35 @@ bool RegisterContextFreeBSDKernel_arm64::WriteRegister(
     const RegisterInfo *reg_info, const RegisterValue &value) {
   return false;
 }
+
+int64_t RegisterContextFreeBSDKernel_arm64::GetOsreldate() {
----------------
DavidSpickett wrote:

I'm looking at https://github.com/search?q=repo%3Afreebsd%2Ffreebsd-src%20osreldate&type=code and wondering if this is in fact an int64_t. It's declared as `int` in most places I see.

My concern is that the code below that reads 8 bytes might pick up some random values in the other 4 bytes. Unless I have misunderstood and the C APIs use int but the storage is in fact 64-bit.

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


More information about the lldb-commits mailing list