Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15
-
None
-
-
7dd26da9f (production), 370915f0e (dev)
Description
Qt Creator 14 has removed support for GDB Python 2.7.
This unfortunately means that Qt 5.15.x 32 and 64 bit users would not be able to debug their applications using Qt 5.15.x MinGW which uses MinGW 8.1 and GDB 8.1.
I have extracted GDB 11.2.0 from MinGW 11.2.0 x86_64 and x86 packages and used a SxS manifest to make sure that the right CRT DLL files are used.
The appmanifest.xml looks like this:
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="gdb.mingw.sxs" version="11.2.0.0" processorArchitecture="x86"></assemblyIdentity> </dependentAssembly> </dependency> </assembly>
and the gdb.mingw.sxs\gdb.mingw.sxs.manifest like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <noInheritable/> <assemblyIdentity type="win32" name="gdb.mingw.sxs" version="11.2.0.0" processorArchitecture="x86"/> <file name="libgcc_s_dw2-1.dll" hash="08d3beb878ccdc4c516d51e98e66fd10be1ea239" hashalg="SHA1"/> <file name="libstdc++-6.dll" hash="92f9c0504b554c17092d52e72bde7d48723c1589" hashalg="SHA1"/> <file name="libwinpthread-1.dll" hash="13b8af525e224f7f69cf1bbe879aa284344d5e0e" hashalg="SHA1"/> </assembly>
.
Then I've applied the appmanifest.xml to gdborig.exe and gdbserver.exe like:
mt.exe -nologo -manifest "appmanifest.xml" -outputresource:"gdborig.exe;#1"
I have attached the extracted GDB to this ticket. The archives can be safely extracted on top existing MinGW 8.1 installations.
Attachments
Issue Links
- blocks
-
QTCREATORBUG-31370 Debugging Qt 5.15 (mingw 32-bit) failing with Qt Creator 14
- Reported
-
QTCREATORBUG-31377 Debugger not Working after updating to Qt Creator 14.0
- Reported
- relates to
-
QTCREATORBUG-31841 GDB debugger of MinGW 32 - 64 bit kits fails to launch.
- Reported