Bug 1871014 - Fix GDB pretty printer for nsWeakPtr. r=nalexander

Differential Revision: https://phabricator.services.mozilla.com/D196948
This commit is contained in:
Tom Schuster 2023-12-22 09:10:29 +00:00
parent ed813ec18d
commit 43df6ae892

View File

@ -18,7 +18,7 @@ class weak_ptr_printer(object):
return "[(%s) 0x0]" % proxy.type
ref_type = proxy.dynamic_type
weak_ptr = proxy.cast(ref_type).dereference()["mReferent"]
weak_ptr = proxy.cast(ref_type).dereference()["mObject"]
if not weak_ptr:
return "[(%s) %s]" % (weak_ptr.type, weak_ptr)