aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/pretty_printers.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 /scripts/gdb/pretty_printers.py
parent1246e00478fb5ab2a357de17066fd8738395d9f1 (diff)
downloadkernel-78e42a1b6e0a857865be1e60f82871ac13c91bb1.tar.xz
kernel-78e42a1b6e0a857865be1e60f82871ac13c91bb1.zip
debug: improve pretty printer implementations
Diffstat (limited to 'scripts/gdb/pretty_printers.py')
-rw-r--r--scripts/gdb/pretty_printers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/gdb/pretty_printers.py b/scripts/gdb/pretty_printers.py
index 83db491..c209328 100644
--- a/scripts/gdb/pretty_printers.py
+++ b/scripts/gdb/pretty_printers.py
@@ -4,7 +4,11 @@ import gdb
import importlib.util
script_path = os.path.abspath(__file__)
-repo_root = os.path.dirname(os.path.dirname(os.path.dirname(script_path)))
+script_root = os.path.dirname(script_path)
+repo_root = os.path.dirname(os.path.dirname(script_root))
+
+if script_root not in sys.path:
+ sys.path.insert(0, script_root)
components = {
"kstd": "libs/kstd/gdb",