Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19093

GDB can not step into nor over Qt sources: assembly code shown instead

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 13.0.0-beta1
    • Qt Creator 4.4.1
    • Debugger
    • None
    • Windows 7

      MinGW gcc 7.1.0 x64

      Qt 5.9.1 build from sources for the x64 target

      Qt designer prebuild 4.4.1

       

    Description

      Hi, I can not step into nor over Qt sources.

      Have played with both the gdb set substitute-path and set directories options for a couple of days with no result - also I am not sure if I had to as my sources never moved.

      I did build Qt from sources (debug and release) and never moved them so the location is the same of the one that I get when I run the objdump tool over the generated qt libs.

      Am attaching the CMakelists that I am using for my sample project.

      I did notice that QtCreator does some magic with the gdb debugger:

       

      1929set substitute-path C:/work/build/qt5_workdir/w/s  C:/usr/local/Qt-5.9.1

      1930set substitute-path Q:/qt5_workdir/w/s  C:/usr/local/Qt-5.9.1

      1931set substitute-path c:/Users/qt/work/install  C:/usr/local/Qt-5.9.1

      1932set substitute-path c:/users/qt/work/qt  C:/usr/local/Qt-5.9.1

       

      And I am not sure if this stuff is really needed as the C:/usr/local/Qt-5.9.1 directory is the install dir (QTDIR)

      Also tried to adjust the source manually by having:

       

      2931set substitute-path C:/work/build/qt5_workdir/w/s C:/5.9.1/qt-everywhere-opensource-src-5.9.1

      2932set substitute-path Q:/qt5_workdir/w/s C:/5.9.1/qt-everywhere-opensource-src-5.9.1

      2933set substitute-path c:/Users/qt/work/install C:/5.9.1/qt-everywhere-opensource-src-5.9.1

      2934set substitute-path c:/users/qt/work/qt C:/5.9.1/qt-everywhere-opensource-src-5.9.1

       

      This however still makes no difference and I am wandering if it is really needed.

       

      Please guys help...I am not the one only that can not debug nor step over the qt sources without having only the assembly code.

      I am also attaching the objdump for my Qt5Cored.dll

      Thanks

       

       

      Attachments

        1. CMakelists.txt
          3 kB
          Michal Turlik
        2. dump_qt5cored_chunk_dll.txt
          673 kB
          Michal Turlik
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            astro2000 Michal Turlik
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes