aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-05-02 15:17:01 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-05-02 15:17:01 +0200
commitff5d5458df2e69c7fca43d78f02ad1c5837a4a22 (patch)
treeb467349abe78b750ea4218ca93039209eef0a96a
parent596550c8002c2a1fa375ff7f39b6b9707b9f042d (diff)
downloadkernel-ff5d5458df2e69c7fca43d78f02ad1c5837a4a22.tar.xz
kernel-ff5d5458df2e69c7fca43d78f02ad1c5837a4a22.zip
debug: fix vector pretty printer
-rw-r--r--scripts/gdb/kstd/vector.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gdb/kstd/vector.py b/scripts/gdb/kstd/vector.py
index b42aeae..597ffdc 100644
--- a/scripts/gdb/kstd/vector.py
+++ b/scripts/gdb/kstd/vector.py
@@ -8,9 +8,9 @@ class KstdVectorPrinter:
self.type = val.type.template_argument(0)
def to_string(self):
- size = int(self.val(["m_size"]))
- capacity = int(self.val(["m_capacity"]))
- return f"kstd::vector<{self.type}> of length {size}, capacity {capacity}"
+ size = int(self.val["m_size"])
+ capacity = int(self.val["m_capacity"])
+ return f"kstd::vector of length {size}, capacity {capacity}"
def children(self):
size = int(self.val["m_size"])