aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/gdb/__init__.py
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-05-07 12:17:01 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-05-07 12:17:01 +0200
commitfb09cd6633b26ef2cfb4f21b8cd852611cfe59d8 (patch)
tree3cee60d6bc9db2b0ff3319f7c56a19fa944659a8 /libs/kstd/gdb/__init__.py
parent6ac1537d07dffa3482bbccf710a77a7316191c2e (diff)
downloadkernel-fb09cd6633b26ef2cfb4f21b8cd852611cfe59d8.tar.xz
kernel-fb09cd6633b26ef2cfb4f21b8cd852611cfe59d8.zip
debug: add support for kstd::observer_ptr
Diffstat (limited to 'libs/kstd/gdb/__init__.py')
-rw-r--r--libs/kstd/gdb/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/kstd/gdb/__init__.py b/libs/kstd/gdb/__init__.py
index 2d61539..c5d1e53 100644
--- a/libs/kstd/gdb/__init__.py
+++ b/libs/kstd/gdb/__init__.py
@@ -2,7 +2,11 @@ import gdb.printing
from .vector import KstdVectorPrinter
from .string import KstdStringPrinter
-from .smart_pointers import KstdUniquePtrPrinter, KstdSharedPtrPrinter
+from .smart_pointers import (
+ KstdUniquePtrPrinter,
+ KstdSharedPtrPrinter,
+ KstdObserverPtrPrinter,
+)
def build_pretty_printers():
@@ -11,6 +15,7 @@ def build_pretty_printers():
pp.add_printer("string", "^kstd::string$", KstdStringPrinter)
pp.add_printer("unique_ptr", "^kstd::unique_ptr<.*>$", KstdUniquePtrPrinter)
pp.add_printer("shared_ptr", "^kstd::shared_ptr<.*>$", KstdSharedPtrPrinter)
+ pp.add_printer("observer_ptr", "^kstd::observer_ptr<.*>$", KstdObserverPtrPrinter)
return pp