diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-05-04 08:20:42 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-05-04 08:20:42 +0200 |
| commit | 1246e00478fb5ab2a357de17066fd8738395d9f1 (patch) | |
| tree | 940aee5a7fbd2f980aaf233c8837220fbe8ab4ae /scripts/gdb/kstd/vector.py | |
| parent | 3ab0a15fb6aba0ad9516da69589b9da8dbd63a8e (diff) | |
| download | kernel-1246e00478fb5ab2a357de17066fd8738395d9f1.tar.xz kernel-1246e00478fb5ab2a357de17066fd8738395d9f1.zip | |
debug: split gdb modules
Diffstat (limited to 'scripts/gdb/kstd/vector.py')
| -rw-r--r-- | scripts/gdb/kstd/vector.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/gdb/kstd/vector.py b/scripts/gdb/kstd/vector.py deleted file mode 100644 index 597ffdc..0000000 --- a/scripts/gdb/kstd/vector.py +++ /dev/null @@ -1,22 +0,0 @@ -import gdb - - -class KstdVectorPrinter: - - def __init__(self, val): - self.val = val - 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 of length {size}, capacity {capacity}" - - def children(self): - size = int(self.val["m_size"]) - data_pointer = self.val["m_data"] - for i in range(size): - yield (f"[{i}]", (data_pointer + i).dereference()) - - def display_hint(self): - return "array" |
