aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/gdb/__init__.py
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-08-30 17:46:56 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-08-30 17:46:56 +0200
commitf27132d968df8fd59748b024ba549b5cd3f980ca (patch)
tree64b11885585176adf02993660ecd48eaae2d53b5 /libs/kstd/gdb/__init__.py
parent58fe72ab83ab6490b9a09e71f5762f2a12bd2c5a (diff)
downloadkernel-f27132d968df8fd59748b024ba549b5cd3f980ca.tar.xz
kernel-f27132d968df8fd59748b024ba549b5cd3f980ca.zip
kstd/gdb: add flat_map printer
Diffstat (limited to 'libs/kstd/gdb/__init__.py')
-rw-r--r--libs/kstd/gdb/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/kstd/gdb/__init__.py b/libs/kstd/gdb/__init__.py
index 018b31f2..a4aee9cd 100644
--- a/libs/kstd/gdb/__init__.py
+++ b/libs/kstd/gdb/__init__.py
@@ -1,6 +1,7 @@
import gdb.printing
+from .flat_map import KstdFlatMapPrinter
from .error_code import KstdErrorCodePrinter
from .result import KstdResultPrinter
from .smart_pointers import (
@@ -17,6 +18,7 @@ from .vector import KstdVectorPrinter
def build_pretty_printers():
pp = gdb.printing.RegexpCollectionPrettyPrinter("kstd")
pp.add_printer("vector", "^kstd::vector<.*>$", KstdVectorPrinter)
+ pp.add_printer("flat_map", "^kstd::flat_map<.*>$", KstdFlatMapPrinter)
pp.add_printer("string", "^kstd::basic_string<.*>$", KstdStringPrinter)
pp.add_printer("unique_ptr", "^kstd::unique_ptr<.*>$", KstdUniquePtrPrinter)
pp.add_printer("shared_ptr", "^kstd::shared_ptr<.*>$", KstdSharedPtrPrinter)