Skip to content

Commit 4269c02

Browse files
committed
[utils] Show the string value of swift::Identifier in LLDB
This adds a straightforward LLDB pretty printer for `swift::Identifier` which prints its string value.
1 parent 25ef5d7 commit 4269c02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/lldb/lldbSwiftDataFormatters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ def __lldb_init_module(debugger, internal_dict):
2020
debugger.HandleCommand('type synthetic add --skip-references -w swift '
2121
'-l lldbSwiftDataFormatters.DemangleNodeSynthProvider '
2222
'-x "^swift::Demangle::Node$"')
23+
debugger.HandleCommand('type summary add -w swift '
24+
'-s "${var.Pointer%S}" '
25+
'swift::Identifier')
2326

2427

2528
def SmallBitVectorSummaryProvider(valobj, internal_dict):

0 commit comments

Comments
 (0)