summaryrefslogtreecommitdiff
path: root/Meta/serenity_gdb.py
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-11-11 00:47:48 +0330
committerLinus Groh <mail@linusgroh.de>2021-11-12 13:01:59 +0000
commitc08bfd450bb6f7e9e0bf9d73bc52f9f88c18f7bf (patch)
treec3dea94414935d16f7ca382c99dffdea3fa810dc /Meta/serenity_gdb.py
parent070d2eaa5116d96d236c08c6f5dd8324d47a8838 (diff)
downloadserenity-c08bfd450bb6f7e9e0bf9d73bc52f9f88c18f7bf.zip
Meta: Update the gdb script for the new RefPtr layout
Diffstat (limited to 'Meta/serenity_gdb.py')
-rw-r--r--Meta/serenity_gdb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/serenity_gdb.py b/Meta/serenity_gdb.py
index d68c3584b9..9c1cda128b 100644
--- a/Meta/serenity_gdb.py
+++ b/Meta/serenity_gdb.py
@@ -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())]