[Lldb-commits] [PATCH] D130307: [LLDB][Reliability] Fix register value unpacking

Slava Gurevich via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 26 00:23:05 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe80dbfddc5aa: [LLDB][Reliability] Fix register value unpacking (authored by fixathon).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130307/new/

https://reviews.llvm.org/D130307

Files:
  lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp


Index: lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp
===================================================================
--- lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp
+++ lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp
@@ -97,7 +97,7 @@
     uint32_t idx = reg_num - dwarf_d0;
     if (idx < 16)
       value = (uint64_t)m_vfp_regs.s_regs[idx * 2] |
-              ((uint64_t)m_vfp_regs.s_regs[idx * 2 + 1] >> 32);
+              ((uint64_t)m_vfp_regs.s_regs[idx * 2 + 1] << 32);
     else
       value = m_vfp_regs.d_regs[idx - 16];
   } else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130307.447591.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220726/500a84b1/attachment.bin>


More information about the lldb-commits mailing list