[Lldb-commits] [lldb] [llvm] [lldb] Fix GetIndexOfChildWithName on register sets (PR #212727)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 29 03:02:54 PDT 2026


================
@@ -113,6 +113,17 @@ Makes programs 10x faster by doing Special New Thing.
 
 ### Changes to LLDB
 
+#### SBAPI
+
+* A [bug](https://github.com/llvm/llvm-project/issues/211787) involving SBValues
+  representing a register set was fixed. The methods `GetIndexOfChildWithName`
+  and `GetChildMemberWithName` were incorrectly looking up values in all
+  register sets. This meant that `GetIndexOfChildWithName` could return an index
+  greater than the size of the set, and that `GetChildMemberWithName` could
+  return values that were actually in a different set. Both methods are now fixed
+  so that they are limited to the registers within the register set. Scripts
+  using these methods may have to be updated as a result.
----------------
DavidSpickett wrote:

The changes to existing tests in this PR are examples of such changes.

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


More information about the lldb-commits mailing list