[Lldb-commits] [lldb] [lldb][AArch64] Read SME2's ZT0 register from Linux core files (PR #70934)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 1 10:41:28 PDT 2023
================
@@ -339,6 +337,18 @@ bool RegisterContextCorePOSIX_arm64::ReadRegister(const RegisterInfo *reg_info,
value.SetFromMemoryData(*reg_info, src + sizeof(sve::user_za_header),
reg_info->byte_size, lldb::eByteOrderLittle,
error);
+ } else if (m_register_info_up->IsSMERegZT(reg)) {
+ value.SetFromMemoryData(*reg_info, m_zt_data.GetDataStart(),
+ reg_info->byte_size, lldb::eByteOrderLittle,
+ error);
+ } else {
+ offset = reg_info->byte_offset - m_register_info_up->GetSMEOffset();
+ assert(offset < sizeof(m_sme_pseudo_regs));
----------------
bulbazord wrote:
Since you're using an assert, I'll ask:
Is this a hard error that isn't recoverable from? Or could we do something else here?
https://github.com/llvm/llvm-project/pull/70934
More information about the lldb-commits
mailing list