Summary: | KDevelop does not handle gdb in version 10.x properly | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Michał Walenciak <Kicer86> |
Component: | CPP Debugger | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | alvinbeach, freddie, mail, mwoehlke.floss, niko.sams, reuben_p, silverunicorn2011, support, wolff |
Priority: | NOR | ||
Version: | 5.6.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kdevelop/kdevelop/-/commit/a974c3c66130f9e454de1006a7894e4002541dd0 | Version Fixed In: | 5.12.230800 |
Sentry Crash Report: | |||
Attachments: | error message indicating that the wrong output line is interpreted as the version number |
Description
Michał Walenciak
2020-11-04 15:08:36 UTC
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 |