mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-01 20:10:28 +00:00
Meta: Update the gdb script for the new RefPtr layout
This commit is contained in:
parent
070d2eaa51
commit
c08bfd450b
Notes:
sideshowbarker
2024-07-18 01:14:24 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/c08bfd450bb Pull-request: https://github.com/SerenityOS/serenity/pull/10864 Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ class AKString:
|
|||
self.val = val
|
||||
|
||||
def to_string(self):
|
||||
if int(self.val["m_impl"]["m_bits"]["m_value"]) == 0:
|
||||
if int(self.val["m_impl"]["m_ptr"]) == 0:
|
||||
return '""'
|
||||
else:
|
||||
impl = AKRefPtr(self.val["m_impl"]).get_pointee().dereference()
|
||||
|
@ -184,7 +184,7 @@ class AKRefPtr:
|
|||
def get_pointee(self):
|
||||
inner_type = self.val.type.template_argument(0)
|
||||
inner_type_ptr = inner_type.pointer()
|
||||
return self.val["m_bits"]["m_value"].cast(inner_type_ptr)
|
||||
return self.val["m_ptr"].cast(inner_type_ptr)
|
||||
|
||||
def children(self):
|
||||
return [('*', self.get_pointee())]
|
||||
|
|
Loading…
Reference in a new issue