[Lldb-commits] [PATCH] D145566: [lldb] Add RegisterFlags class

Jason Molenda via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 9 13:55:50 PST 2023


jasonmolenda accepted this revision.
jasonmolenda added a comment.
This revision is now accepted and ready to land.

LGTM.  I'm not really advocating to changing `m_type` to be an enum, but curious how that might fit into the total context of this feature, and if it makes any sense.



================
Comment at: lldb/include/lldb/Target/RegisterFlags.h:70
+    // We do not expect to see another flags type here.
+    std::string m_type;
+  };
----------------
Should we store the type as an eFormat enum instead of a string?  Maybe it's just informational for logging/humans and not too important.  ProcessGDBRemote::BuildDynamicRegisterInfo translates our own register type names into these values (more often seen in the old lldb-created `qRegisterInfo`s). 


================
Comment at: lldb/source/Target/RegisterFlags.cpp:49
+    : m_id(id.str()), m_size(size) {
+  // We expect that the XML processor will discard anything decsribing flags but
+  // with no fields.
----------------
describing


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145566/new/

https://reviews.llvm.org/D145566



More information about the lldb-commits mailing list