Commit d33f7fd2 authored by Eike Ziller's avatar Eike Ziller
Browse files

LLDB: Implement qtVersion() for dumpers

Reads the version from Qt Core instead of just assuming Qt 5

Task-number: QTCREATORBUG-10427

Change-Id: Ifa7944c37449afe95c26b2c57e694be8eb8cbf4d
Reviewed-by: default avatarhjk <>
parent db055b9c
......@@ -32,10 +32,11 @@ import binascii
import inspect
import json
import os
import threading
import re
import select
import sys
import subprocess
import threading
currentDir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
sys.path.insert(1, currentDir)
......@@ -470,7 +471,22 @@ class Dumper(DumperBase):
return typeobj.GetTypeClass() in (lldb.eTypeClassStruct, lldb.eTypeClassClass)
def qtVersion(self):
return 0x050000
global qqVersion
if not qqVersion is None:
return qqVersion
qqVersion = 0x0
coreExpression = re.compile(r"(lib)?Qt5?Core")
for n in range(0,
module =
if coreExpression.match(module.GetFileSpec().GetFilename()):
reverseVersion = module.GetVersion()
shift = 0
for v in reverseVersion:
qqVersion += v << shift
shift += 8
return qqVersion
def is32bit(self):
return False
Supports Markdown
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