aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/gdb/__init__.py
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-23 17:04:34 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-23 17:04:34 +0200
commit969c2018d2d3741022818e3bc326b57162748053 (patch)
tree749bfab88dca10e02bed2fefd6ef43de89d192ab /libs/kstd/gdb/__init__.py
parent7e3e8672cdd19b19532de216e3df6fc3bae8ed7a (diff)
downloadkernel-969c2018d2d3741022818e3bc326b57162748053.tar.xz
kernel-969c2018d2d3741022818e3bc326b57162748053.zip
kstd: fix gdb pretty printers for pointers
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 4c4b3415..26a38e3b 100644
--- a/libs/kstd/gdb/__init__.py
+++ b/libs/kstd/gdb/__init__.py
@@ -6,6 +6,7 @@ from .smart_pointers import (
KstdUniquePtrPrinter,
KstdSharedPtrPrinter,
KstdObserverPtrPrinter,
+ KstdWeakPtrPrinter,
)
@@ -15,6 +16,7 @@ def build_pretty_printers():
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)
+ pp.add_printer("weak_ptr", "^kstd::weak_ptr<.*>$", KstdWeakPtrPrinter)
pp.add_printer("observer_ptr", "^kstd::observer_ptr<.*>$", KstdObserverPtrPrinter)
return pp