Debugger: Check also for Qt5Core(d).dll on Windows

Change-Id: Ic078a165d35c316cb12d08ca84913b4b07143aa4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2017-03-14 07:36:01 +01:00
parent 11e8ce65db
commit e41befd4f7
+9 -2
View File
@@ -976,11 +976,18 @@ class Dumper(DumperBase):
for objfile in gdb.objfiles():
name = objfile.filename
if name.find('/libQt5Core') >= 0:
if self.isWindowsTarget():
isQtCoreObjFile = name.find('Qt5Cored.dll') >= 0 or name.find('Qt5Core.dll') >= 0
else:
isQtCoreObjFile = name.find('/libQt5Core') >= 0
if isQtCoreObjFile:
fd, tmppath = tempfile.mkstemp()
os.close(fd)
cmd = 'maint print msymbols %s "%s"' % (tmppath, name)
symbols = gdb.execute(cmd, to_string = True)
try:
symbols = gdb.execute(cmd, to_string = True)
except:
pass
ns = ''
with open(tmppath) as f:
for line in f: