Skip to content

Commit 43df6ae

Browse files
committed
Bug 1871014 - Fix GDB pretty printer for nsWeakPtr. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D196948
1 parent ed813ec commit 43df6ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/gdbpp/gdbpp/smartptr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def to_string(self):
1818
return "[(%s) 0x0]" % proxy.type
1919

2020
ref_type = proxy.dynamic_type
21-
weak_ptr = proxy.cast(ref_type).dereference()["mReferent"]
21+
weak_ptr = proxy.cast(ref_type).dereference()["mObject"]
2222
if not weak_ptr:
2323
return "[(%s) %s]" % (weak_ptr.type, weak_ptr)
2424

0 commit comments

Comments
 (0)