forked from qt-creator/qt-creator
Debugger: Re-introduce namespace detection for Qt 4
It's apparently still in use. Change-Id: I89d04c6b3afff8014334e3543c3f3b77bf52d130 Task-number: QTCREATORBUG-19135 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -996,8 +996,13 @@ class Dumper(DumperBase):
|
||||
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
|
||||
else:
|
||||
isQtCoreObjFile = name.find('/libQt5Core') >= 0
|
||||
if not isQtCoreObjFile:
|
||||
isQtCoreObjFile = name.find('/libQtCore') >= 0
|
||||
|
||||
if isQtCoreObjFile:
|
||||
self.handleQtCoreLoaded(objfile)
|
||||
|
||||
@@ -1019,6 +1024,13 @@ class Dumper(DumperBase):
|
||||
if len(ns):
|
||||
ns += '::'
|
||||
break
|
||||
if line.find('currentThreadData ') >= 0:
|
||||
# [ 0] b 0x7ffff67d3000 _ZN2UUL17currentThreadDataE
|
||||
# section .tbss UU::currentThreadData qthread_unix.cpp\\n
|
||||
ns = re.split('_ZN?(\d*)(\w*)L17currentThreadDataE? ', line)[2]
|
||||
if len(ns):
|
||||
ns += '::'
|
||||
break
|
||||
os.remove(tmppath)
|
||||
|
||||
lenns = len(ns)
|
||||
|
||||
Reference in New Issue
Block a user