Meta: Remove gdb pretty printer for AK::InlineLinkedList

This commit is contained in:
Brian Gianforcaro 2021-06-15 11:27:43 -07:00 committed by Andreas Kling
parent 6c114ecaef
commit f0fbaa00a4

View file

@ -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