Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. gdb not working in Qt creator
Forum Updated to NodeBB v4.3 + New Features

gdb not working in Qt creator

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 3 Posters 1.5k 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.
  • D Offline
    D Offline
    dahu74fr
    wrote on last edited by
    #1

    Hello
    i installed the last version of Qt on my computer with the online installer the 7.02 version.
    everything works fine except the debugger. it says gdb not recognized.
    i look at the installation and gdb.exe is present in the installation.
    if i open a command line in the directory where gdb.exe is and i type gdb -- version, no return for this command.
    i made the same installation on a friend computer that i was preparing and everything is ok.
    gdb --version returns me the version installed.
    someone has a solution for this issue ?

    thanks you very much for your eventual solutions
    best regards

    jsulmJ 1 Reply Last reply
    0
    • D dahu74fr

      Hello
      i installed the last version of Qt on my computer with the online installer the 7.02 version.
      everything works fine except the debugger. it says gdb not recognized.
      i look at the installation and gdb.exe is present in the installation.
      if i open a command line in the directory where gdb.exe is and i type gdb -- version, no return for this command.
      i made the same installation on a friend computer that i was preparing and everything is ok.
      gdb --version returns me the version installed.
      someone has a solution for this issue ?

      thanks you very much for your eventual solutions
      best regards

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @dahu74fr You already have a thread for that: https://forum.qt.io/topic/137836/qt-creator-7-2-gdb-not-recognized
      Did you try to disable anti-virus software? If gdb does not work from command line then the problem is not QtCreator.

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

      1 Reply Last reply
      0
      • cristian-adamC Offline
        cristian-adamC Offline
        cristian-adam
        wrote on last edited by
        #3

        You have a broken MinGW installation. Please get the latest MinGW package mentioned at https://wiki.qt.io/MinGW

        This is what I get when I run these commands:

        c:\mingw64\bin
        $ dir | findstr gdb
        21/03/2022  05:50             4.587 gdb-add-index
        21/03/2022  05:50            79.599 gdb.exe
        21/03/2022  05:50        12.583.623 gdborig.exe
        21/03/2022  05:50           595.832 gdbserver.exe
        
        c:\mingw64\bin
        $ gdb --version
        GNU gdb (GDB) 11.2
        Copyright (C) 2022 Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law.
        

        Note the size of gdb.exe, it's small compared to gdborig.exe, which makes it just a frontend.

        If I rename gdborig.exe to something else I also don't get any output from the gdb.exe.

        Just check your MinGW installation and you should be fine.

        1 Reply Last reply
        0
        • cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote on last edited by
          #4

          If you have the same files and they are all complete, then it means that for some reason the gdb.exe frontend executable can't launch gdborig.exe.

          If this is the case, then some more details are needed. Process Monitor can provide such details.

          D 1 Reply Last reply
          0
          • cristian-adamC cristian-adam

            If you have the same files and they are all complete, then it means that for some reason the gdb.exe frontend executable can't launch gdborig.exe.

            If this is the case, then some more details are needed. Process Monitor can provide such details.

            D Offline
            D Offline
            dahu74fr
            wrote on last edited by
            #5

            @cristian-adam i have the same files than on the friend computer whitch as Qt runing fine in debug.
            i have also copied all the installation of Qt working on my friend computer on my computer with the same issue.
            i think it is a configuration or a key in the register of my computer who make this issue.
            i don't know how to use process monitor.
            Thanks.

            1 Reply Last reply
            0
            • cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on last edited by
              #6

              gdb.exe should simply start if you copy the directory structure. Have you tried unpacking x86_64-11.2.0-release-posix-seh-rt_v9-rev3.7z and running gdb from there?

              If it doesn't work, can you disable the anti-virus?

              1 Reply Last reply
              0

              • Login

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