fix qt namespace retrieval when an early break happened

the logic to retrigger the namespace retrieval was broken, so if it was
triggered for some reason before qt was "sufficiently available", the
bad/failed guess would persist.

Change-Id: I90e02247142814bdc3f6d5cddfc0c2fe37665a3e
Done-with: hjk
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Oswald Buddenhagen
2016-07-05 16:52:32 +02:00
committed by hjk
parent ce4ddcb060
commit 69c8b9271c

View File

@@ -256,11 +256,6 @@ class Dumper(DumperBase):
self.qtNamespaceToReport = None
self.interpreterBreakpointResolvers = []
# The guess does not need to be updated during a fetchVariables()
# as the result is fixed during that time (ignoring "active"
# dumpers causing loading of shared objects etc).
self.currentQtNamespaceGuess = None
def prepare(self, args):
self.output = []
self.currentIName = ""
@@ -294,6 +289,11 @@ class Dumper(DumperBase):
#warn("EXPANDED INAMES: %s" % self.expandedINames)
#warn("WATCHERS: %s" % self.watchers)
# The guess does not need to be updated during a fetchVariables()
# as the result is fixed during that time (ignoring "active"
# dumpers causing loading of shared objects etc).
self.currentQtNamespaceGuess = None
def listOfLocals(self):
frame = gdb.selected_frame()