Skip to content

Commit 11a407f

Browse files
Combine dstring regular expressions
1 parent 27add1b commit 11a407f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/pretty-printers/gdb/pretty_printers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ def load_cbmc_printers():
5454

5555
# First argument is the name of the pretty-printer, second is a regex match for which type
5656
# it should be applied too, third is the class that should be called to pretty-print that type.
57-
printers.add_printer('irep_idt', '^irep_idt', DStringPrettyPrinter)
58-
printers.add_printer('dstringt', '^dstringt', DStringPrettyPrinter)
57+
printers.add_printer('dstringt', '^(?:dstringt|irep_idt)', DStringPrettyPrinter)
5958
printers.add_printer('instructiont', '^goto_programt::instructiont', InstructionPrettyPrinter)
6059
# We aren't associating with a particular object file, so pass in None instead of gdb.current_objfile()
6160
gdb.printing.register_pretty_printer(None, printers, replace=True)

0 commit comments

Comments
 (0)