Commit f92e0437 authored by hjk's avatar hjk

Debugger: Speed up Qt namespace detection in non-Qt projects

Task-number: QTCREATORBUG-10610
Change-Id: Idc5a93625fa4a148864709a1cefbcbbab877a8a2
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent dbda90ca
......@@ -378,6 +378,11 @@ class Dumper(DumperBase):
self.useDynamicType = True
self.expandedINames = {}
# The guess does not need to be updated during a run()
# as the result is fixed during that time (ignoring "active"
# dumpers causing loading of shared objects etc).
self.currentQtNamespaceGuess = None
watchers = ""
resultVarName = ""
options = []
......@@ -1534,6 +1539,9 @@ class Dumper(DumperBase):
self.importPlainDumper(printer)
def qtNamespace(self):
if not self.currentQtNamespaceGuess is None:
return self.currentQtNamespaceGuess
# This only works when called from a valid frame.
try:
cand = "QArrayData::shared_null"
......@@ -1559,6 +1567,7 @@ class Dumper(DumperBase):
except:
pass
self.currentQtNamespaceGuess = ""
return ""
def bbedit(self, args):
......
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