mstorsjo created this revision. mstorsjo added reviewers: jasonmolenda, jingham. Herald added subscribers: JDevlieghere, kristof.beyls. Herald added a project: LLDB.
In these cases, the register number should be calculated from `fpu_d0`, not `fpu_s0`. Repository: rLLDB LLDB https://reviews.llvm.org/D67892 Files: lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp Index: lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp =================================================================== --- lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp +++ lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp @@ -503,7 +503,7 @@ case fpu_d31: { ProcessSP process_sp(m_thread.GetProcess()); if (process_sp.get()) { - DataExtractor regdata(&fpu.v[reg - fpu_s0], 8, process_sp->GetByteOrder(), + DataExtractor regdata(&fpu.v[reg - fpu_d0], 8, process_sp->GetByteOrder(), process_sp->GetAddressByteSize()); offset_t offset = 0; value.SetDouble(regdata.GetDouble(&offset));
Index: lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp =================================================================== --- lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp +++ lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp @@ -503,7 +503,7 @@ case fpu_d31: { ProcessSP process_sp(m_thread.GetProcess()); if (process_sp.get()) { - DataExtractor regdata(&fpu.v[reg - fpu_s0], 8, process_sp->GetByteOrder(), + DataExtractor regdata(&fpu.v[reg - fpu_d0], 8, process_sp->GetByteOrder(), process_sp->GetAddressByteSize()); offset_t offset = 0; value.SetDouble(regdata.GetDouble(&offset));
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits