[libcxx-commits] [libcxx] [lldb] [libcxx] adds size-based `__split_buffer` representation to unstable ABI (PR #139632)

Christopher Di Bella via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 31 09:52:11 PDT 2025


================
@@ -74,6 +77,40 @@ def stdstring_SummaryProvider(valobj, dict):
             return '"' + strval + '"'
 
 
+def get_buffer_data(parent):
+    map_valobj = parent.valobj.GetChildMemberWithName("__map_")
+    map_data = map_valobj.GetChildMemberWithName("__data_")
+    if map_data.IsValid():
+        return map_data
+
+    return map_valobj
+
+
+def get_buffer_end(buffer, begin):
+    map_end = buffer.GetChildMemberWithName("__end_")
+    if map_end.IsValid():
+        return map_end.GetValueAsUnsigned(0)
+    map_size = buffer.GetChildMemberWithName("__size_").GetValueAsUnsigned(0)
----------------
cjdb wrote:

Done.

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


More information about the libcxx-commits mailing list