forked from qt-creator/qt-creator
debugger: Fix address output for watchers
There is no address for on-the-fly expressions Change-Id: Id8c1c2e4d727732196386928a9eddc7c81073415 Reviewed-on: http://codereview.qt.nokia.com/73 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk
This commit is contained in:
@@ -1472,7 +1472,11 @@ class Dumper:
|
||||
|
||||
def putAddress(self, addr):
|
||||
if self.printsAddress:
|
||||
self.put('addr="0x%x",' % long(addr))
|
||||
try:
|
||||
# addr can be "None", long(None) fails.
|
||||
self.put('addr="0x%x",' % long(addr))
|
||||
except:
|
||||
pass
|
||||
|
||||
def putNumChild(self, numchild):
|
||||
#warn("NUM CHILD: '%s' '%s'" % (numchild, self.currentChildNumChild))
|
||||
|
||||
Reference in New Issue
Block a user