[Scummvm-git-logs] scummvm master -> ff050b75cabcb2e4df847a8a2ccc72b4e9d9c338
grisenti
noreply at scummvm.org
Tue Sep 12 20:50:45 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ff050b75ca DEVTOOLS: Add pretty printing support for Common::MultiMap
Commit: ff050b75cabcb2e4df847a8a2ccc72b4e9d9c338
https://github.com/scummvm/scummvm/commit/ff050b75cabcb2e4df847a8a2ccc72b4e9d9c338
Author: grisenti (emanuele at grisenti.net)
Date: 2023-09-12T22:49:56+02:00
Commit Message:
DEVTOOLS: Add pretty printing support for Common::MultiMap
Changed paths:
devtools/gdb_pretty_printers.py
diff --git a/devtools/gdb_pretty_printers.py b/devtools/gdb_pretty_printers.py
index 61b26bd616b..852e593d950 100644
--- a/devtools/gdb_pretty_printers.py
+++ b/devtools/gdb_pretty_printers.py
@@ -73,8 +73,8 @@ class RBTreeIterator:
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
More information about the Scummvm-git-logs
mailing list