aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/gdb/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/kstd/gdb/__init__.py')
-rw-r--r--libs/kstd/gdb/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/kstd/gdb/__init__.py b/libs/kstd/gdb/__init__.py
index 26a38e3b..0cdafffd 100644
--- a/libs/kstd/gdb/__init__.py
+++ b/libs/kstd/gdb/__init__.py
@@ -1,5 +1,7 @@
import gdb.printing
+
+from .units import KstdBytesPrinter
from .vector import KstdVectorPrinter
from .string import KstdStringPrinter
from .smart_pointers import (
@@ -18,6 +20,8 @@ def build_pretty_printers():
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)
+ pp.add_printer("bytes", "^kstd::basic_unit<.*, kstd::bytes_tag, .*>$", KstdBytesPrinter)
+ pp.add_printer("offset", "^kstd::basic_unit<.*, kstd::byte_offset_tag, .*>$", KstdBytesPrinter)
return pp