[utils] Use --expand in Demangle::Node lldb type summary (#65897)

Without `--expand`, only the summary is shown, no child nodes. Adding `--expand` allows 
for printing the child nodes, to be printed too.

Follow up to https://github.com/apple/swift/pull/40568
This commit is contained in:
Dave Lee
2023-05-15 11:04:31 -07:00
committed by GitHub
parent 4448a3675e
commit ab0eeb7427

View File

@@ -14,7 +14,7 @@ def __lldb_init_module(debugger, internal_dict):
tName = 'lldbSwiftDataFormatters.SmallBitVectorSummaryProvider'
debugger.HandleCommand('type summary add -w llvm '
'-F %s -x "^llvm::SmallBitVector$"' % tName)
debugger.HandleCommand('type summary add --skip-references -w swift '
debugger.HandleCommand('type summary add --expand --skip-references -w swift '
'-F lldbSwiftDataFormatters.DemangleNodeSummaryProvider '
'-x "^swift::Demangle::Node$"')
debugger.HandleCommand('type synthetic add --skip-references -w swift '