summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-09-24 12:20:21 +0000
committerMartin Storsjo <martin@martin.st>2019-09-24 12:20:21 +0000
commite37b882421d44cc4e99c10ee558837b4fa4904be (patch)
tree73de0fab65451802160e5a89397c087012db4201 /lldb/source/Plugins/Process/Utility
parent1a2805b887d31c886e9df476b8262bc01d016df0 (diff)
downloadbcm5719-llvm-e37b882421d44cc4e99c10ee558837b4fa4904be.tar.gz
bcm5719-llvm-e37b882421d44cc4e99c10ee558837b4fa4904be.zip
[LLDB] Fix typo in RegisterContextDarwin_arm64
In these cases, the register number should be calculated from fpu_d0, not fpu_s0. Differential Revision: https://reviews.llvm.org/D67892 llvm-svn: 372738
Diffstat (limited to 'lldb/source/Plugins/Process/Utility')
-rw-r--r--lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp b/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp
index 66e3b756307..6927c47635c 100644
--- a/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp
+++ b/lldb/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp
@@ -503,7 +503,7 @@ bool RegisterContextDarwin_arm64::ReadRegister(const RegisterInfo *reg_info,
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));
OpenPOWER on IntegriCloud