[Lldb-commits] [lldb] [lldb][elf-core][ARM] Add support for VFP registers (PR #155956)
Igor Kudrin via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 29 18:00:54 PDT 2025
================
@@ -51,6 +55,23 @@ bool RegisterContextCorePOSIX_arm::ReadRegister(const RegisterInfo *reg_info,
return true;
}
}
+
+ const uint32_t reg = reg_info->kinds[lldb::eRegisterKindLLDB];
+ if (reg == LLDB_INVALID_REGNUM)
+ return false;
+
+ if (IsFPR(reg)) {
+ assert(offset >= GetGPRSize());
+ offset -= GetGPRSize();
+ if (m_fpr.ValidOffsetForDataOfSize(offset, reg_info->byte_size)) {
+ Status error;
+ value.SetFromMemoryData(*reg_info, m_fpr.GetDataStart() + offset,
+ reg_info->byte_size, lldb::eByteOrderLittle,
----------------
igorkudrin wrote:
In fact, `m_fpr` also has the correct byte order set. I don't think preserving the similarity with the AArch64 code is that important, so now I've opted to use a bit simpler method to set the value.
https://github.com/llvm/llvm-project/pull/155956
More information about the lldb-commits
mailing list