[Lldb-commits] [PATCH] D130307: [LLDB][Reliability] Fix register value unpacking
Slava Gurevich via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 21 14:42:49 PDT 2022
fixathon created this revision.
fixathon added reviewers: clayborg, aadsm.
Herald added a project: All.
fixathon requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Fix incorrect direction for bit-shifting.
Coverity warning 1355603 (scan.coverity.com)
Repository:
rG LLVM Github Monorepo
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.446639.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220721/d9ae185b/attachment.bin>
More information about the lldb-commits
mailing list