mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
Meta: Remove gdb pretty printer for AK::InlineLinkedList
This commit is contained in:
parent
6c114ecaef
commit
f0fbaa00a4
1 changed files with 0 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue