Commit fe296e2b authored by hjk's avatar hjk
Browse files

Debugger: Disable build-in LLDB formatters for old LLDB



This is kind of hot fix to solve conflicts with Creator's
pretty printing in the LLDB 179.5 context which does not
seem to handle SBValue.SetPreferSyntheticValue.

Change-Id: I9837bd3044a9ec90c67de3060d5895ae0b6b8653
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 6db66ed7
......@@ -507,6 +507,10 @@ class Dumper:
#self.debugger.EnableLog("lldb", ["all"])
self.debugger.Initialize()
self.debugger.HandleCommand("settings set auto-confirm on")
if not hasattr(lldb.SBType, 'GetCanonicalType'): # "Test" for 179.5
warn("DISABLING DEFAULT FORMATTERS")
self.debugger.HandleCommand('type category delete gnu-libstdc++')
self.debugger.HandleCommand('type category delete libcxx')
self.process = None
self.target = None
self.eventState = lldb.eStateInvalid
......@@ -1618,6 +1622,7 @@ execfile(os.path.join(currentDir, "qttypes.py"))
def doit():
db = Dumper()
db.report('lldbversion="%s"' % lldb.SBDebugger.GetVersionString())
db.report('state="enginesetupok"')
while True:
......
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