[Lldb-commits] [lldb] a2c7631 - Attempt to fix e3dea5cf0e326366ab95a49d167fde8b0816e292
Walter Erquinigo via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 22 16:33:48 PST 2021
Author: Walter Erquinigo
Date: 2021-11-22T16:33:40-08:00
New Revision: a2c76312ed0acd9cb8a1ac03c94c1464a2dbb208
URL: https://github.com/llvm/llvm-project/commit/a2c76312ed0acd9cb8a1ac03c94c1464a2dbb208
DIFF: https://github.com/llvm/llvm-project/commit/a2c76312ed0acd9cb8a1ac03c94c1464a2dbb208.diff
LOG: Attempt to fix e3dea5cf0e326366ab95a49d167fde8b0816e292
https://lab.llvm.org/buildbot/#/builders/17/builds/13728 found an issue
in the optional formatter.
Added:
Modified:
lldb/examples/synthetic/gnu_libstdcpp.py
Removed:
################################################################################
diff --git a/lldb/examples/synthetic/gnu_libstdcpp.py b/lldb/examples/synthetic/gnu_libstdcpp.py
index 27fca0a5d327..9f1ba29ae126 100644
--- a/lldb/examples/synthetic/gnu_libstdcpp.py
+++ b/lldb/examples/synthetic/gnu_libstdcpp.py
@@ -35,6 +35,10 @@ def get_child_index(self, name):
return 0
def get_child_at_index(self, index):
+ # some versions of libstdcpp have an additional _M_value child with the actual value
+ possible_value = self.value.GetChildMemberWithName('_M_value')
+ if possible_value.IsValid():
+ return possible_value.Clone('Value')
return self.value.Clone('Value')
"""
More information about the lldb-commits
mailing list