From ff5d5458df2e69c7fca43d78f02ad1c5837a4a22 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 2 May 2026 15:17:01 +0200 Subject: debug: fix vector pretty printer --- scripts/gdb/kstd/vector.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') 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"]) -- cgit v1.2.3