aboutsummaryrefslogtreecommitdiff
path: root/kapi/gdb/device.py
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-05-04 12:01:01 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-05-04 12:01:01 +0200
commit78e42a1b6e0a857865be1e60f82871ac13c91bb1 (patch)
tree34cc53f3367b660320a0be6aa1c0c451135f83e0 /kapi/gdb/device.py
parent1246e00478fb5ab2a357de17066fd8738395d9f1 (diff)
downloadkernel-78e42a1b6e0a857865be1e60f82871ac13c91bb1.tar.xz
kernel-78e42a1b6e0a857865be1e60f82871ac13c91bb1.zip
debug: improve pretty printer implementations
Diffstat (limited to 'kapi/gdb/device.py')
-rw-r--r--kapi/gdb/device.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/kapi/gdb/device.py b/kapi/gdb/device.py
new file mode 100644
index 0000000..b655972
--- /dev/null
+++ b/kapi/gdb/device.py
@@ -0,0 +1,9 @@
+import gdb
+from teachos import TeachOSBasePrinter
+
+
+class KapiDevicesDevicePrinter(TeachOSBasePrinter):
+ def to_string(self):
+ return (
+ f"{self.value['m_name']} @ {self.value['m_major']}:{self.value['m_minor']}"
+ )