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

Qt SDK doesn't write the version of the MinGW GDB debugger

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 6.6
    • Packaging & Installer
    • None
    • Windows

    Description

      Under c:\Qt\Tools\sdktool\share\qtcreator\QtProject\qtcreator\debuggers.xml I've got:

      <!-- Written by sdktool , 2022-03-23T12:58:48. -->
      <qtcreator>
       <data>
        <variable>DebuggerItem.0</variable>
        <valuemap type="QVariantMap">
         <valuelist type="QVariantList" key="Abis">
          <value type="QString">x86-windows-msys-pe-64bit</value>
         </valuelist>
         <value type="bool" key="AutoDetected">true</value>
         <value type="QString" key="Binary">C:/Qt/Tools/mingw810_64/bin/gdb.exe</value>
         <value type="QString" key="DisplayName">GNU gdb 8.1 for MinGW 8.1.0 64-bit</value>
         <value type="int" key="EngineType">1</value>
         <value type="QString" key="Id">Debugger.qt.tools.win64_mingw810</value>
        </valuemap>
       </data> 

       
      which gets expanded at:
      c:\Users\Cristian\AppData\Roaming\QtProject\qtcreator\debuggers.xml as:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE QtCreatorDebuggers>
      <!-- Written by QtCreator 11.0.82, 2023-08-28T16:16:53. -->
      <qtcreator>
       <data>
        <variable>DebuggerItem.0</variable>
        <valuemap type="QVariantMap">
         <valuelist type="QVariantList" key="Abis">
          <value type="QString">x86-windows-msys-pe-64bit</value>
         </valuelist>
         <value type="bool" key="AutoDetected">true</value>
         <value type="QString" key="Binary">C:/Qt/Tools/mingw810_64/bin/gdb.exe</value>
         <value type="QString" key="DetectionSource"></value>
         <value type="QString" key="DisplayName">GNU gdb 8.1 for MinGW 8.1.0 64-bit</value>
         <value type="int" key="EngineType">1</value>
         <value type="QString" key="Id">Debugger.qt.tools.win64_mingw810</value>
         <value type="QDateTime" key="LastModified"></value>
         <value type="QString" key="Version">8.1.0</value>
         <value type="QString" key="WorkingDirectory"></value>
        </valuemap>
       </data>
      

      But because <value type="QString" key="Version">8.1.0</value> is missing Qt Creator will run gdb.exe to query for the version.

      This will be done at every Qt Creator run, which is unnecessary, and on Windows process creation is slow due to various reasons, and makes Qt Creator startup slower than it should be.

      Attachments

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

        Activity

          People

            releaseteam Qt Release Team
            cadam Cristian Adam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes