Commit 89542189 authored by Christian Stenger's avatar Christian Stenger Committed by hjk

Dumper: Fix typo and exception handling

Change-Id: I4008d5427da7cedc0f57183a25519a1aef1fcb7a
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent a2c18fc6
......@@ -510,7 +510,7 @@ class Dumper(DumperBase):
self.typesToReport = {}
if "forcens" in self.options:
self.qtNamepaceToRport = self.qtNamespace()
self.qtNamepaceToReport = self.qtNamespace()
if self.qtNamespaceToReport:
self.output.append(',qtnamespace="%s"' % self.qtNamespaceToReport)
......@@ -1500,14 +1500,16 @@ class Dumper(DumperBase):
except:
pass
# Seemingly needed with Debian's GDB 7.4.1
s = gdb.execute("ptype QByteArray", to_string=True)
ns = s[s.find("class")+6:s.find("QByteArray")]
if len(ns):
self.qtNamespaceToReport = ns
self.qtNamespace = lambda: ns
return ns
try:
# Seemingly needed with Debian's GDB 7.4.1
s = gdb.execute("ptype QByteArray", to_string=True)
ns = s[s.find("class")+6:s.find("QByteArray")]
if len(ns):
self.qtNamespaceToReport = ns
self.qtNamespace = lambda: ns
return ns
except:
pass
self.currentQtNamespaceGuess = ""
return ""
......
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