forked from qt-creator/qt-creator
Dumper: optimize cdb Qt version detection
... by not overwriting DumperBase.qtVersion. This function already
checks whether the Qt version was passed via the fetch variables
command.
amends 3aee50f5fd
Fixes: QTCREATORBUG-31049
Change-Id: Ifa67be5701fc7e5492e4c1fcb8943111b299c78d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -331,8 +331,7 @@ class Dumper(DumperBase):
|
|||||||
self.qtNamespace = lambda: namespace
|
self.qtNamespace = lambda: namespace
|
||||||
return namespace
|
return namespace
|
||||||
|
|
||||||
def qtVersion(self):
|
def extractQtVersion(self):
|
||||||
qtVersion = None
|
|
||||||
try:
|
try:
|
||||||
qtVersion = self.parseAndEvaluate(
|
qtVersion = self.parseAndEvaluate(
|
||||||
'((void**)&%s)[2]' % self.qtHookDataSymbolName()).integer()
|
'((void**)&%s)[2]' % self.qtHookDataSymbolName()).integer()
|
||||||
@@ -344,10 +343,7 @@ class Dumper(DumperBase):
|
|||||||
(major, minor, patch) = version.decode('latin1').split('.')
|
(major, minor, patch) = version.decode('latin1').split('.')
|
||||||
qtVersion = 0x10000 * int(major) + 0x100 * int(minor) + int(patch)
|
qtVersion = 0x10000 * int(major) + 0x100 * int(minor) + int(patch)
|
||||||
except:
|
except:
|
||||||
pass
|
return None
|
||||||
if qtVersion is None:
|
|
||||||
qtVersion = self.fallbackQtVersion
|
|
||||||
self.qtVersion = lambda: qtVersion
|
|
||||||
return qtVersion
|
return qtVersion
|
||||||
|
|
||||||
def putVtableItem(self, address):
|
def putVtableItem(self, address):
|
||||||
|
Reference in New Issue
Block a user