diff --git a/devtools/gdb_pretty_printers.py b/devtools/gdb_pretty_printers.py index 61b26bd616b7..852e593d9501 100644 --- a/devtools/gdb_pretty_printers.py +++ b/devtools/gdb_pretty_printers.py @@ -73,8 +73,8 @@ def __next__(self): parent = self.current_node.dereference()["parent"] return value -class StableMapPrinter: - "Prints Common::StableMap" +class RBTreeMapPrinter: + "Prints Common::StableMap and Common::MultiMap" class _iterator: def __init__(self, rb_tree): @@ -152,7 +152,8 @@ def build_pretty_printer(): pp.add_printer('String', '^Common::String$', StringPrinter) pp.add_printer('U32String', '^Common::U32String$', StringPrinter) pp.add_printer('Array', '^Common::Array<.*>$', ArrayPrinter) - pp.add_printer('StableMap', '^Common::StableMap<.*>$', StableMapPrinter) + pp.add_printer('StableMap', '^Common::StableMap<.*>$', RBTreeMapPrinter) + pp.add_printer('MultiMap', '^Common::MultiMap<.*>$', RBTreeMapPrinter) pp.add_printer('List', '^Common::List<.*>$', ListPrinter) return pp