Commit 46a707fd authored by hjk's avatar hjk Committed by hjk

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/73Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk
parent 2b2b5aec
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment