diff --git a/lldb/examples/synthetic/gnu_libstdcpp.py b/lldb/examples/synthetic/gnu_libstdcpp.py index 27fca0a5d3271..9f1ba29ae126d 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') """