File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,24 +239,20 @@ def hash_table_summary(valobj, internal_dict):
239239def __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' )
You can’t perform that action at this time.
0 commit comments