SUMMARY When trying to debug in KDevelop with gdb in version 10.0 an error appears: You need gdb 7.0.0 or higher. You are using: GNU gdb (GDB) 10.1 STEPS TO REPRODUCE: Install gdb in version 10.1 Load c/cpp project to KDevelop and try to debug it. SOFTWARE/OS VERSIONS OS: ArchLinux Kdevelop version: 5.6.0 gdb version: 10.1
Thank you for the report. This was noticed already and fixed by Milian Wolff; the fix will be in 5.6.1 which should be released soon.
*** Bug 429419 has been marked as a duplicate of this bug. ***
*** Bug 429498 has been marked as a duplicate of this bug. ***
*** Bug 430159 has been marked as a duplicate of this bug. ***
*** Bug 430433 has been marked as a duplicate of this bug. ***
I'm still seeing this in KDevelop 5.6.1
I can reproduce this with gdb 13.1, KDevelop 5.10.221203 My .gdbinit ends with a few 'skip' lines: skip -gfi /usr/include/c++/*/*/* skip -gfi /usr/include/c++/*/* skip -gfi /usr/include/c++/* KDevelop seems to to be trying to interpret the output of those lines ("File(s) /usr/include/c++/*/*/* will be skipped when stepping.") as the version number.
Created attachment 158187 [details] error message indicating that the wrong output line is interpreted as the version number
A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/468
Git commit a974c3c66130f9e454de1006a7894e4002541dd0 by Igor Kushnir, on behalf of Denis Biryukov. Committed on 25/07/2023 at 19:22. Pushed by igorkushnir into branch 'release/23.08'. gdb: skip to GDB version string This change allows to use ~/.gdbinit file with constructions like `skip -gfi /usr/include/c++/*`. Problem with current implementation is that when .gdbinit contains such strings GDB output produced is following: ``` File(s) /usr/include/c++/* will be skipped when stepping. GNU gdb (Ubuntu 8.2.91.20190405-0ubuntu3) 8.2.91.20190405-git ``` And current implementation expects version on the first output from GDB. This change fixes it by adding skip functionality during GDB session initialization. Related: bug 409702, bug 446786 FIXED-IN: 5.12.230800 M +29 -15 plugins/gdb/debugsession.cpp https://invent.kde.org/kdevelop/kdevelop/-/commit/a974c3c66130f9e454de1006a7894e4002541dd0