[Lldb-commits] [lldb] [lldb][AArch64][Linux] Add field information for the CPSR register (PR #70300)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 8 01:25:24 PST 2023


================
@@ -62,7 +62,10 @@ struct RegisterInfo {
   /// rax ax, ah, and al.
   uint32_t *invalidate_regs;
   /// If not nullptr, a type defined by XML descriptions.
-  const RegisterFlags *flags_type;
+  /// This is mutable so that it may be updated after the register info tables
+  /// have been constructed. For example a specific target OS may have a
+  /// different layout.
+  mutable const RegisterFlags *flags_type;
----------------
DavidSpickett wrote:

My intent is that the `RegisterFlags` pointed to is const, but that you can change which `RegisterFlags` is pointed to. Or in other words, you can change the information but only if you change all the fields at once.

Whether what I have written does that, I will double check, and expand the comment to clarify.

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


More information about the lldb-commits mailing list