Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Cant stop qt-creator from showing assembly code.
Forum Updated to NodeBB v4.3 + New Features

Cant stop qt-creator from showing assembly code.

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 3 Posters 338 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VoiceShifter
    wrote on 14 Feb 2025, 17:55 last edited by VoiceShifter
    #1

    Greetings, I've been trying to stop qt creator from showing assembly code for some time but Im running out of options. Here is an info about qt-creator.
    787916d8-3096-43cc-b82e-ccd806032dd0-image.png
    Here is an example code to trigger this condition.

    #include <QCoreApplication>
    # include <QtNetwork/QTcpSocket>
    # include <QtNetwork/QHostAddress>
    int main(int argc, char *argv[])
    {
        QTcpSocket MainSocket{};
        MainSocket.bind(32324);
    }
    

    Breakpoint is set on first line of main function.
    Im building using MinGW 11.2.0 64 bit and Qt 6.5.3 and gdb 11.2.0 for MinGW 11.2.0 64-bit
    From similar topics I've seen that its normal behaivor, when entering the code, source for which are not presented. But I'm not pressing button to step into, Im pressing step over, if its not a call of my function. Currently - the only way to debug line by line - is to set breakpoint on every line, which I think is not a supposed way to use a debuger. I just want to be able to step over C++ code.
    I've tried to check-uncheck "Use debbuging helper" in Options->Debugger as suggested in this topic
    And I dont have any other IDE's for qt and there is no #line directives, as suggester here
    Here is a debug logs and Im noticing some strange directories I've never installed QT to, like C/Users/qt/work and F:/Qt/Tools/QtCreator/bin/usr/src/debug/qt5base/src/corelib which look line combination of linux and windows paths.
    Also, for some reason, they are pre-defined in source path, in debugger. 779d025f-826f-4482-b8da-7c7eea6505fc-image.png
    I didnt install qt in those folders, and even If I remove all of those paths and press "Add Qt sources" - they are appearing again.
    In application output Im getting those errors

    Could not load shared library symbols for 36 libraries, e.g. C:\Windows\SYSTEM32\ntdll.dll.
    Use the "info sharedlibrary" command to see the complete listing.
    Do you need "set solib-search-path" or "set sysroot"?Could not load shared library symbols for C:\Windows\System32\imm32.dll.
    Do you need "set solib-search-path" or "set sysroot"?Could not load shared library symbols for C:\Windows\System32\bcryptprimitives.dll.
    Do you need "set solib-search-path" or "set sysroot"?Could not load shared library symbols for C:\Windows\System32\nsi.dll.
    Do you need "set solib-search-path" or "set sysroot"?
    

    And I should mention that I've triend clicking "switch to instruction-wise operation mode" - it only works if you are in C++ code, if you are in assembly - this button does nothing.
    And I'm using debug build mode, and In Cmake I've set

    set(CMAKE_CXX_FLAGS "-g")
    

    and tried

    set(CMAKE_CXX_FLAGS_DEBUG "-g")
    

    without success.
    If you've faced issue like this or can make a guess what may cause it - please let me know.
    If there is anything else I could provide - again, please let me know.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VoiceShifter
      wrote on 26 Feb 2025, 05:59 last edited by
      #7

      Okay, I reinstall Qt fully, thankfully I managed to setup android back again without any pain. Surprisingly, on windows all tools take less space, than on macOS, only 40ish gigs. Problem now fixed, although the original reason is unknown.

      1 Reply Last reply
      1
      • V Offline
        V Offline
        VoiceShifter
        wrote on 24 Feb 2025, 09:26 last edited by
        #2

        I don't know if bumping works here, but issue still persist, guess I will re-install 60+gb of QT.

        J 1 Reply Last reply 24 Feb 2025, 09:34
        0
        • V VoiceShifter
          24 Feb 2025, 09:26

          I don't know if bumping works here, but issue still persist, guess I will re-install 60+gb of QT.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 24 Feb 2025, 09:34 last edited by
          #3

          @VoiceShifter said in Cant stop qt-creator from showing assembly code.:

          60+gb of QT.

          60GB?! What did you install? You don't have to install everything, only install what you need.

          Regarding the issue: you mean that if debugger stops in your code you only see assembly?
          Are you debugging a debug build?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          V 1 Reply Last reply 25 Feb 2025, 06:11
          0
          • J jsulm
            24 Feb 2025, 09:34

            @VoiceShifter said in Cant stop qt-creator from showing assembly code.:

            60+gb of QT.

            60GB?! What did you install? You don't have to install everything, only install what you need.

            Regarding the issue: you mean that if debugger stops in your code you only see assembly?
            Are you debugging a debug build?

            V Offline
            V Offline
            VoiceShifter
            wrote on 25 Feb 2025, 06:11 last edited by
            #4

            @jsulm Thank you for reply.
            I've recently installed qt on another machine, and with all components I need - it takes about 60gb of space. It includes android sdk's and web-assebly, so yeah, around 60gbs.

            Regarding the issue: No, its stops at C++ code, but when I try to step over it - it instantly show assembly, which results it need to place breakpoint on every line, to debug line by line. In provided example - when I place breakpoint on first line of main function and start debugger - its stop's there, but then, if I press f10 or f11(step over or step into) - it gets into assembly, which for me to exit it - requires to place breakpoint on another line of C++ code and press F5(continue) again.
            As I mentioned in my primary post -
            @VoiceShifter said in Cant stop qt-creator from showing assembly code.:

            And I'm using debug build mode

            Since I installed QT on another machine - I know, that this behaivor is not intended, and Im supposed to be able to traverse C++ code without problems.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 25 Feb 2025, 08:26 last edited by
              #5

              @VoiceShifter: Before you install everything again, have a look in the Debugger Log: View > Views > Debugger Log.

              It might also be worth to try upgrading Creator to 15.x first (and 16.0 is just around the corner) to see if that brings any advantage.

              Regards

              Qt has to stay free or it will die.

              V 1 Reply Last reply 25 Feb 2025, 14:03
              0
              • A aha_1980
                25 Feb 2025, 08:26

                @VoiceShifter: Before you install everything again, have a look in the Debugger Log: View > Views > Debugger Log.

                It might also be worth to try upgrading Creator to 15.x first (and 16.0 is just around the corner) to see if that brings any advantage.

                Regards

                V Offline
                V Offline
                VoiceShifter
                wrote on 25 Feb 2025, 14:03 last edited by
                #6

                @aha_1980
                Thank you for reply. Are you by any chance talking about these logs?

                @VoiceShifter said in Cant stop qt-creator from showing assembly code.:

                Here is a debug logs and Im noticing some strange directories I've never installed QT to

                There is a link to pastebin in original post. As I stated - there is a bunch of strange paths, but, as I now know - those are original path qt was compiled with and they doesnt matter much, since target path present in source paths mapping is correct.

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  VoiceShifter
                  wrote on 26 Feb 2025, 05:59 last edited by
                  #7

                  Okay, I reinstall Qt fully, thankfully I managed to setup android back again without any pain. Surprisingly, on windows all tools take less space, than on macOS, only 40ish gigs. Problem now fixed, although the original reason is unknown.

                  1 Reply Last reply
                  1
                  • V VoiceShifter has marked this topic as solved on 26 Feb 2025, 05:59

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved