mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
Bug 1871014 - Fix GDB pretty printer for nsWeakPtr. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D196948
This commit is contained in:
parent
ed813ec18d
commit
43df6ae892
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user