Skip to content

Commit 484ba01

Browse files
committed
Merge branch 'master' of github.com:biscuitlang/bl
2 parents f445c8c + 12bd092 commit 484ba01

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

lldb_pretty_printers_bl.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,24 +239,20 @@ def hash_table_summary(valobj, internal_dict):
239239
def __lldb_init_module(debugger, internal_dict):
240240
mod = 'lldb_pretty_printers_bl'
241241

242-
# String
243242
debugger.HandleCommand(f'type summary add -F {mod}.string_summary "string"')
244243
debugger.HandleCommand(f'type synthetic add -l {mod}.StringSyntheticProvider "string"')
245244

246-
# String View
247245
debugger.HandleCommand(f'type summary add -F {mod}.string_summary "sl.{{s64,p.u8}}"')
248246
debugger.HandleCommand(f'type synthetic add -l {mod}.StringSyntheticProvider "sl.{{s64,p.u8}}"')
249247

250-
# Dynamic Array
251248
debugger.HandleCommand(f'type summary add --regex --cascade true -F {mod}.da_summary "da\\.{{.*}}"')
252249
debugger.HandleCommand(f'type synthetic add --regex --cascade true -l {mod}.DaSyntheticProvider "da\\.{{.*}}"')
253250

254-
# Slice
255251
debugger.HandleCommand(f'type summary add --regex -F {mod}.sl_summary "sl\\.{{.*}}"')
256252
debugger.HandleCommand(f'type synthetic add --regex -l {mod}.SlSyntheticProvider "sl\\.{{.*}}"')
257253

258-
# hash table
259-
debugger.HandleCommand(f'type summary add --regex -F {mod}.hash_table_summary "s.{{sl\\.{{s64,p\\.s\\.103\\.Slot}}"')
260-
debugger.HandleCommand(f'type synthetic add --regex -l {mod}.HashTableSyntheticProvider "s.{{sl\\.{{s64,p\\.s\\.103\\.Slot}}"')
254+
ht_pattern = "s\\.\\{sl\\.\\{s64,p\\.s\\..*\\.Slot\\}.*"
255+
debugger.HandleCommand(f'type summary add --regex --cascade true -F {mod}.hash_table_summary "{ht_pattern}"')
256+
debugger.HandleCommand(f'type synthetic add --regex --cascade true -l {mod}.HashTableSyntheticProvider "{ht_pattern}"')
261257

262258
print('[lldb_pretty_printers_bl] loaded')

0 commit comments

Comments
 (0)