Summary: | gdb front end fails for certain .gdbinit files (noticed with https://github.com/hugsy/gef) | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | David Oldford <david_oldford> |
Component: | CPP Debugger | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | niko.sams |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kdevelop/kdevelop/-/commit/a974c3c66130f9e454de1006a7894e4002541dd0 | Version Fixed In: | 5.12.230800 |
Sentry Crash Report: | |||
Attachments: | the error message I get |
Description
David Oldford
2021-12-10 14:06:25 UTC
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 428688 FIXED-IN: 5.12.230800 M +29 -15 plugins/gdb/debugsession.cpp https://invent.kde.org/kdevelop/kdevelop/-/commit/a974c3c66130f9e454de1006a7894e4002541dd0 |