[Lldb-commits] [PATCH] D131664: [LLDB][ARM] Remove unused LoadPseudoRegistersFromFrame function
David Spickett via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 16 01:29:02 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG662c1c28813b: [LLDB][ARM] Remove unused LoadPseudoRegistersFromFrame function (authored by DavidSpickett).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131664/new/
https://reviews.llvm.org/D131664
Files:
lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp
lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h
Index: lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h
===================================================================
--- lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h
+++ lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h
@@ -32,8 +32,6 @@
void ClearPseudoMemory();
- bool LoadPseudoRegistersFromFrame(lldb_private::StackFrame &frame);
-
bool LoadStateFromDictionary(lldb_private::OptionValueDictionary *test_data);
bool CompareState(EmulationStateARM &other_state,
Index: lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp
===================================================================
--- lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp
+++ lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp
@@ -26,43 +26,6 @@
EmulationStateARM::~EmulationStateARM() = default;
-bool EmulationStateARM::LoadPseudoRegistersFromFrame(StackFrame &frame) {
- RegisterContext *reg_ctx = frame.GetRegisterContext().get();
- bool success = true;
- uint32_t reg_num;
-
- for (int i = dwarf_r0; i < dwarf_r0 + 17; ++i) {
- reg_num =
- reg_ctx->ConvertRegisterKindToRegisterNumber(eRegisterKindDWARF, i);
- const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoAtIndex(reg_num);
- RegisterValue reg_value;
- if (reg_ctx->ReadRegister(reg_info, reg_value)) {
- m_gpr[i - dwarf_r0] = reg_value.GetAsUInt32();
- } else
- success = false;
- }
-
- for (int i = dwarf_d0; i < dwarf_d0 + 32; ++i) {
- reg_num =
- reg_ctx->ConvertRegisterKindToRegisterNumber(eRegisterKindDWARF, i);
- RegisterValue reg_value;
- const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoAtIndex(reg_num);
-
- if (reg_ctx->ReadRegister(reg_info, reg_value)) {
- uint64_t value = reg_value.GetAsUInt64();
- uint32_t idx = i - dwarf_d0;
- if (idx < 16) {
- m_vfp_regs.s_regs[idx * 2] = (uint32_t)value;
- m_vfp_regs.s_regs[idx * 2 + 1] = (uint32_t)(value >> 32);
- } else
- m_vfp_regs.d_regs[idx - 16] = value;
- } else
- success = false;
- }
-
- return success;
-}
-
bool EmulationStateARM::StorePseudoRegisterValue(uint32_t reg_num,
uint64_t value) {
if (reg_num <= dwarf_cpsr)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131664.452916.patch
Type: text/x-patch
Size: 2267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220816/275c1b24/attachment.bin>
More information about the lldb-commits
mailing list