gdb not working in Qt creator
-
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 -
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@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. -
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 togdborig.exe
, which makes it just a frontend.If I rename
gdborig.exe
to something else I also don't get any output from thegdb.exe
.Just check your MinGW installation and you should be fine.
-
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 launchgdborig.exe
.If this is the case, then some more details are needed. Process Monitor can provide such details.
-
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 launchgdborig.exe
.If this is the case, then some more details are needed. Process Monitor can provide such details.
@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. -
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?