Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128398

gdb 8.1 needs to be updated to gdb 11.2.0 for Qt 5.15.x

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.18
    • 5.15
    • Packaging & Installer
    • None
    • Windows
    • 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

        1. gdb-11.2.0-x86_64.7z
          13.75 MB
          Cristian Adam
        2. gdb-11.2.0-x86.7z
          13.70 MB
          Cristian Adam

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tejokitu Teemu Jokitulppo
              cadam Cristian Adam
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes