File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 11"""
22LLDB Formatters for LLVM data types for use in the swift project.
33
4- Load into LLDB with 'command script import /path/to/lldbDataFormatters .py'
4+ Load into LLDB with 'command script import /path/to/lldbSwiftDataFormatters .py'
55"""
66
77import sys
88from enum import Enum
99
1010
1111def __lldb_init_module (debugger , internal_dict ):
12- debugger .HandleCommand ('type category define -e swift -l c++' )
12+ category = 'swift-compiler-internals'
13+ debugger .HandleCommand (f'type category define -e { category } -l c++' )
1314
1415 tName = 'lldbSwiftDataFormatters.SmallBitVectorSummaryProvider'
1516 debugger .HandleCommand ('type summary add -w llvm '
16- '-F %s -x "^llvm::SmallBitVector$"' % tName )
17- debugger .HandleCommand ('type summary add --expand --skip-references -w swift '
17+ f '-F { tName } -x "^llvm::SmallBitVector$"' )
18+ debugger .HandleCommand (f 'type summary add --expand --skip-references -w { category } '
1819 '-F lldbSwiftDataFormatters.DemangleNodeSummaryProvider '
1920 '-x "^swift::Demangle::Node$"' )
20- debugger .HandleCommand ('type synthetic add --skip-references -w swift '
21+ debugger .HandleCommand (f 'type synthetic add --skip-references -w { category } '
2122 '-l lldbSwiftDataFormatters.DemangleNodeSynthProvider '
2223 '-x "^swift::Demangle::Node$"' )
23- debugger .HandleCommand ('type summary add -w swift '
24+ debugger .HandleCommand (f 'type summary add -w { category } '
2425 '-s "${var.Pointer%S}" '
2526 'swift::Identifier' )
2627
You can’t perform that action at this time.
0 commit comments