aboutsummaryrefslogtreecommitdiff
path: root/kapi/gdb/__init__.py
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-05-08 18:14:08 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-05-08 18:14:08 +0200
commit8ec011d9f5ad79c1e951127d3906a08e282649d1 (patch)
tree0223ce3c923578efe913f5b9dc39bf2c7481dcc9 /kapi/gdb/__init__.py
parent07fb219869099c719b0fbfeae81b95512487639e (diff)
downloadkernel-8ec011d9f5ad79c1e951127d3906a08e282649d1.tar.xz
kernel-8ec011d9f5ad79c1e951127d3906a08e282649d1.zip
debug: add pretty printer for boot modules
Diffstat (limited to 'kapi/gdb/__init__.py')
-rw-r--r--kapi/gdb/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/kapi/gdb/__init__.py b/kapi/gdb/__init__.py
index afb68f8..88b1d05 100644
--- a/kapi/gdb/__init__.py
+++ b/kapi/gdb/__init__.py
@@ -1,7 +1,8 @@
import gdb.printing
-from .memory import *
+from .boot_modules import *
from .devices import *
+from .memory import *
def build_pretty_printers():
@@ -17,6 +18,11 @@ def build_pretty_printers():
pp.add_printer(
"kapi_devices_device", "^kapi::devices::device$", KapiDevicesDevicePrinter
)
+ pp.add_printer(
+ "kapi_boot_modules_boot_module",
+ "^kapi::boot_modules::boot_module$",
+ KapiBootModulesBootModulePrinter,
+ )
return pp