Commit 50459e57 authored by hjk's avatar hjk

Debugger: Use target not host architecture in QDateTime dumper

Task-number: QTCREATORBUG-11164

Change-Id: I83bd56f91c1e5342e1a755638c794dde7f5b345a
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 415602e0
......@@ -351,12 +351,6 @@ class DumperBase:
#def toBlob(self, value):
# """Abstract"""
def isArmArchitecture(self):
return False
def isQnxTarget(self):
return False
def is32bit(self):
return self.ptrSize() == 4
......
......@@ -892,6 +892,10 @@ class Dumper(DumperBase):
def isQnxTarget(self):
return 'qnx' in gdb.TARGET_CONFIG.lower()
def isWindowsTarget(self):
# We get i686-w64-mingw32
return 'mingw' in gdb.TARGET_CONFIG.lower()
def qtVersionString(self):
try:
return str(gdb.lookup_symbol("qVersion")[0].value()())
......
......@@ -429,6 +429,15 @@ class Dumper(DumperBase):
def isStructType(self, typeobj):
return typeobj.GetTypeClass() in (lldb.eTypeClassStruct, lldb.eTypeClassClass)
def isWindowsTarget(self):
return False
def isQnxTarget(self):
return False
def isArmArchitecture(self):
return False
def qtVersionAndNamespace(self):
for func in self.target.FindFunctions('qVersion'):
name = func.GetSymbol().GetName()
......
......@@ -249,7 +249,7 @@ def qdump__QDateTime(d, value):
base = d.extractPointer(value)
is32bit = d.is32bit()
if qtVersion >= 0x050200:
if platform.system() in ("Microsoft", "Windows"):
if d.isWindowsTarget():
msecsOffset = 8
specOffset = 16
offsetFromUtcOffset = 20
......
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