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:
hjk
2011-05-23 17:40:58 +02:00
committed by hjk
parent 2b2b5aec23
commit 46a707fd8d

View File

@@ -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))