aboutsummaryrefslogtreecommitdiff
path: root/kapi/gdb/device.py
diff options
context:
space:
mode:
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']}"
+ )