.gdbinit_python
author Gerald Squelart <gsquelart@mozilla.com>
Tue, 08 Nov 2016 15:12:33 +1100
changeset 435725 1185cf870e8681261b9ae9360aa5240605a94d9f
parent 374641 c993782dbd5218c72c653b53482daea1be9b4c5c
child 583708 726220b317d57f05c9f04ef9dedf63656ebe7958
permissions -rw-r--r--
Bug 1316206 - Make RefPtr(decltype(nullptr)) MOZ_IMPLICIT - r?froydnj Making this constructor non-explicit will permit automatic conversions from 'nullptr' into RefPtr types, which I think are not dangerous. The one spot that this affects is in 'UserDataType nsBaseHashtable::Get(KeyType)', which does a 'return 0;' into the UserDataType, which could be a bool, an int, a RefPtr or other. I'm changing that into a C++11 "value initialization", which falls back to "zero initialization" for PODs: 'return UserDataType{};'. MozReview-Commit-ID: F41VlvTNOZU

python
import sys
sys.path.append('python/gdbpp/')
import gdbpp
end