[Lldb-commits] [lldb] [lldb] Cache register types by object UID and register size (PR #215874)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 13 03:23:09 PDT 2026
================
@@ -47,13 +51,17 @@ class RegisterType {
const std::string &GetID() const { return m_id; }
+ /// Return an identifier unique for the lifetime of this debugger process.
----------------
DavidSpickett wrote:
RegisterTypes are made in two places:
* The GDB remote process where the XML is parsed.
* The type detector.
So is this m_uid going to be unique for the lifetime of one or both of those, or is "debugger process" a different lifetime?
And what's an example of that lifetime ending?
For example if the lifetime is the lifetime of the gdb remote process, then disconnecting from that remote would destruct the RegisterType. Does m_uid apply even after that?
https://github.com/llvm/llvm-project/pull/215874
More information about the lldb-commits
mailing list