diff options
author | David Spickett <david.spickett@linaro.org> | 2023-11-07 09:08:44 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2023-11-07 09:35:25 +0000 |
commit | ea9d44f5ec13383372b0b972fceafca881e89186 (patch) | |
tree | a66509624ed12e494c4b8779bd65c073beb1dd68 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp | |
parent | 04790b98e2fcfe9da0d61549655ee3d051329fad (diff) | |
download | llvm-ea9d44f5ec13383372b0b972fceafca881e89186.zip llvm-ea9d44f5ec13383372b0b972fceafca881e89186.tar.gz llvm-ea9d44f5ec13383372b0b972fceafca881e89186.tar.bz2 |
Reland "[lldb] Add template method for getting const or mutable regs from DynamicRegisterInfo (#71402)"
This reverts commit 75b195cc4cee8d6f3216b7602f8247f5888a47af.
I've moved the specialisations out of the class to fix the g++ compilation.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp index e35983f..e9bd65f 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp @@ -228,7 +228,9 @@ bool GDBRemoteRegisterContext::ReadRegisterBytes(const RegisterInfo *reg_info) { SetAllRegisterValid(true); return true; } else if (buffer_sp->GetByteSize() > 0) { - for (auto x : llvm::enumerate(m_reg_info_sp->registers())) { + for (auto x : llvm::enumerate( + m_reg_info_sp->registers< + DynamicRegisterInfo::reg_collection_const_range>())) { const struct RegisterInfo ®info = x.value(); m_reg_valid[x.index()] = (reginfo.byte_offset + reginfo.byte_size <= |