File tree 1 file changed +7
-6
lines changed 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
2
LLDB Formatters for LLVM data types for use in the swift project.
3
3
4
- Load into LLDB with 'command script import /path/to/lldbDataFormatters .py'
4
+ Load into LLDB with 'command script import /path/to/lldbSwiftDataFormatters .py'
5
5
"""
6
6
7
7
import sys
8
8
from enum import Enum
9
9
10
10
11
11
def __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++' )
13
14
14
15
tName = 'lldbSwiftDataFormatters.SmallBitVectorSummaryProvider'
15
16
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 } '
18
19
'-F lldbSwiftDataFormatters.DemangleNodeSummaryProvider '
19
20
'-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 } '
21
22
'-l lldbSwiftDataFormatters.DemangleNodeSynthProvider '
22
23
'-x "^swift::Demangle::Node$"' )
23
- debugger .HandleCommand ('type summary add -w swift '
24
+ debugger .HandleCommand (f 'type summary add -w { category } '
24
25
'-s "${var.Pointer%S}" '
25
26
'swift::Identifier' )
26
27
You can’t perform that action at this time.
0 commit comments