forked from qt-creator/qt-creator
Dumper: Adapt to Id that moved from Core to Utils
Change-Id: I6437d813234dc22923a313d540f115e070edeba7 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
11a7ccb865
commit
e3312205ed
@@ -514,7 +514,10 @@ class Dumper(DumperBase):
|
||||
raise Exception("cdb does not support calling functions")
|
||||
|
||||
def nameForCoreId(self, id):
|
||||
idName = cdbext.call('Cored4!Core::nameForId(%d)' % id)
|
||||
for dll in ['Utilsd4', 'Utils4']:
|
||||
idName = cdbext.call('%s!Utils::nameForId(%d)' % (dll, id))
|
||||
if idName is not None:
|
||||
break
|
||||
return self.fromNativeValue(idName)
|
||||
|
||||
def putCallItem(self, name, rettype, value, func, *args):
|
||||
|
@@ -90,13 +90,13 @@ def dumpLiteral(d, value):
|
||||
d.putValue(d.hexencode(readLiteral(d, value)), "latin1")
|
||||
|
||||
|
||||
def qdump__Core__Id(d, value):
|
||||
def qdump__Utils__Id(d, value):
|
||||
val = value.extractPointer()
|
||||
if True:
|
||||
if d.isMsvcTarget():
|
||||
name = d.nameForCoreId(val).address()
|
||||
else:
|
||||
name = d.parseAndEvaluate("Core::nameForId(0x%x)" % val).pointer()
|
||||
name = d.parseAndEvaluate("Utils::nameForId(0x%x)" % val).pointer()
|
||||
d.putSimpleCharArray(name)
|
||||
else:
|
||||
d.putValue(val)
|
||||
|
Reference in New Issue
Block a user