Commit a33d12f4 authored by hjk's avatar hjk Committed by hjk

debugger: don't use python's "hex()" as it adds "L" suffixes

Change-Id: I4c42f07785606f9adfb7f8129027b5f2d094f310
Reviewed-on: http://codereview.qt.nokia.com/1309Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 34276b93
......@@ -166,7 +166,8 @@ def cleanAddress(addr):
# We cannot use str(addr) as it yields rubbish for char pointers
# that might trigger Unicode encoding errors.
#return addr.cast(lookupType("void").pointer())
return hex(long(addr))
# We do not use "hex(...)" as it (sometimes?) adds a "L" suffix.
return "0x%x" % long(addr)
def extractTemplateArgument(type, position):
level = 0
......
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