forked from qt-creator/qt-creator
Debugger: Also extract Qt namespaces for libinfixed Qt build
GDB-only for now. Task-number: QTCREATORBUG-19620 Change-Id: I2ca3a927623ec0df742fed65048e8a3bcfa5cee2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -31,6 +31,7 @@ except:
|
||||
import gdb
|
||||
import os
|
||||
import os.path
|
||||
import re
|
||||
import sys
|
||||
import struct
|
||||
import tempfile
|
||||
@@ -995,15 +996,11 @@ class Dumper(DumperBase):
|
||||
def handleNewObjectFile(self, objfile):
|
||||
name = objfile.filename
|
||||
if self.isWindowsTarget():
|
||||
isQtCoreObjFile = name.find('Qt5Cored.dll') >= 0 or name.find('Qt5Core.dll') >= 0
|
||||
if not isQtCoreObjFile:
|
||||
isQtCoreObjFile = name.find('QtCored.dll') >= 0 or name.find('QtCore.dll') >= 0
|
||||
qtCoreMatch = re.match('.*Qt5?Core[^/.]*d?\.dll', name)
|
||||
else:
|
||||
isQtCoreObjFile = name.find('/libQt5Core') >= 0
|
||||
if not isQtCoreObjFile:
|
||||
isQtCoreObjFile = name.find('/libQtCore') >= 0
|
||||
qtCoreMatch = re.match('.*/libQt5?Core[^/.]\.so', name)
|
||||
|
||||
if isQtCoreObjFile:
|
||||
if qtCoreMatch is not None:
|
||||
self.handleQtCoreLoaded(objfile)
|
||||
|
||||
def handleQtCoreLoaded(self, objfile):
|
||||
|
Reference in New Issue
Block a user