Skip to content

Commit

Permalink
Attempt to fix e3dea5c
Browse files Browse the repository at this point in the history
https://lab.llvm.org/buildbot/#/builders/17/builds/13728 found an issue
in the optional formatter.
  • Loading branch information
walter-erquinigo committed Nov 23, 2021
1 parent bb0d8e4 commit a2c7631
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lldb/examples/synthetic/gnu_libstdcpp.py
Expand Up @@ -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')

"""
Expand Down

0 comments on commit a2c7631

Please sign in to comment.