[Lldb-commits] [lldb] [lldb] Add template method for getting const or mutable regs from DynamicRegisterInfo (PR #71402)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 7 00:57:59 PST 2023


================
@@ -108,10 +104,11 @@ bool ArchitectureAArch64::ReconfigureRegisterInfo(DynamicRegisterInfo &reg_info,
   if (!vg_reg_value && !svg_reg_value)
     return false;
 
+  auto regs = reg_info.registers<DynamicRegisterInfo::reg_collection_range>();
----------------
DavidSpickett wrote:

I couldn't figure out how to get that to work:
```
/home/david.spickett/llvm-project/lldb/source/Plugins/Architecture/AArch64/ArchitectureAArch64.cpp:107:61: error: no matching member function for call to 'registers'
  DynamicRegisterInfo::reg_collection_range regs = reg_info.registers();
                                                   ~~~~~~~~~^~~~~~~~~
/home/david.spickett/llvm-project/lldb/include/lldb/Target/DynamicRegisterInfo.h:93:27: note: candidate template ignored: couldn't infer template argument 'T'
  template <typename T> T registers() = delete;
                          ^
1 error generated.
```
Feel free to do it yourself if you know what the syntax should be.

https://github.com/llvm/llvm-project/pull/71402


More information about the lldb-commits mailing list