Commit 20b11960 authored by Joerg Bornemann's avatar Joerg Bornemann Committed by hjk

Debugger: fix Qt namespace detection for gdb 7.4.1-debian

Change-Id: I379ff3dec051b22ffe313e6543020488550df97e
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 52431d3d
......@@ -1500,6 +1500,14 @@ 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
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