diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-05-02 15:17:01 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-05-02 15:17:01 +0200 |
| commit | ff5d5458df2e69c7fca43d78f02ad1c5837a4a22 (patch) | |
| tree | b467349abe78b750ea4218ca93039209eef0a96a /scripts/gdb | |
| parent | 596550c8002c2a1fa375ff7f39b6b9707b9f042d (diff) | |
| download | kernel-ff5d5458df2e69c7fca43d78f02ad1c5837a4a22.tar.xz kernel-ff5d5458df2e69c7fca43d78f02ad1c5837a4a22.zip | |
debug: fix vector pretty printer
Diffstat (limited to 'scripts/gdb')
| -rw-r--r-- | scripts/gdb/kstd/vector.py | 6 |
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"]) |
