[Lldb-commits] [PATCH] D67892: [LLDB] Fix typo in RegisterContextDarwin_arm64

Martin Storsjö via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Sep 22 12:07:23 PDT 2019


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));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67892.221223.patch
Type: text/x-patch
Size: 713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190922/cac287b8/attachment.bin>


More information about the lldb-commits mailing list