diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-06-15 11:27:43 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-16 10:40:01 +0200 |
commit | f0fbaa00a4084cdc34b2459585ab41b27b128d04 (patch) | |
tree | 5bcda094d20f1a8bc037d9fe10e76b715ea79abb /Meta/serenity_gdb.py | |
parent | 6c114ecaefd08d5ce32a9d03f43d89322a53b629 (diff) | |
download | serenity-f0fbaa00a4084cdc34b2459585ab41b27b128d04.zip |
Meta: Remove gdb pretty printer for AK::InlineLinkedList
Diffstat (limited to 'Meta/serenity_gdb.py')
-rw-r--r-- | Meta/serenity_gdb.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Meta/serenity_gdb.py b/Meta/serenity_gdb.py index de7c6d0621..8b489a3532 100644 --- a/Meta/serenity_gdb.py +++ b/Meta/serenity_gdb.py @@ -20,8 +20,6 @@ def handler_class_for_type(type, re=re.compile('^([^<]+)(<.*>)?$')): return AKAtomic elif klass == 'AK::DistinctNumeric': return AKDistinctNumeric - elif klass == 'AK::InlineLinkedList': - return AKInlineLinkedList elif klass == 'AK::HashMap': return AKHashMapPrettyPrinter elif klass == 'AK::RefCounted': @@ -320,30 +318,6 @@ class AKSinglyLinkedList: return f'AK::SinglyLinkedList<{handler_class_for_type(template_type).prettyprint_type(template_type)}>' -class AKInlineLinkedList: - def __init__(self, val): - self.val = val - - def to_string(self): - return AKInlineLinkedList.prettyprint_type(self.val.type) - - def children(self): - node_type_ptr = self.val.type.template_argument(0).pointer() - - elements = [] - node = self.val["m_head"] - while node != 0: - elements.append(node.cast(node_type_ptr)) - node = node["m_next"] - - return [(f"[{i}]", elements[i].dereference()) for i in range(len(elements))] - - @classmethod - def prettyprint_type(cls, type): - template_type = type.template_argument(0) - return f'AK::InlineLinkedList<{handler_class_for_type(template_type).prettyprint_type(template_type)}>' - - class VirtualAddress: def __init__(self, val): self.val = val |