[Lldb-commits] [lldb] [lldb] New expedited register specfication for unavailable regs (PR #193894)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 24 05:54:09 PDT 2026


================
@@ -2090,6 +2095,9 @@ following forms:
   followed by a series of key/value pairs:
     * If key is a hex number, it is a register number and value is
       the hex value of the register in debuggee endian byte order.
+      An empty value indicates that the register cannot be fetched
+      at this stop point; lldb will not succeed if it sends a separate
+      read-register packet.
----------------
DavidSpickett wrote:

I think this is backwards compatible in that older clients would try to parse empty string as hex, fail, and decide to send a specific register read packet.

I know that old client -> new server is not much of a concern for you, but either way, I think it would work as long as they haven't assumed it would always be valid hex. If they have, that's on them.

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


More information about the lldb-commits mailing list