| Summary: | Invalid gdb version check | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Ivan Stepanov <ivanstepanovftw> |
| Component: | CPP Debugger | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | freddie, ivanstepanovftw, niko.sams, peje66 |
| Priority: | NOR | ||
| Version First Reported In: | 5.3.2 | ||
| Target Milestone: | --- | ||
| Platform: | Manjaro | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/kdevelop/kdevelop/-/commit/a974c3c66130f9e454de1006a7894e4002541dd0 | Version Fixed/Implemented In: | 5.12.230800 |
| Sentry Crash Report: | |||
|
Description
Ivan Stepanov
2019-07-10 23:04:39 UTC
[user@pc ~]$ cat .gdbinit
python
import sys
sys.path.append('/home/user/.config/Epic/GDBPrinters/')
from UE4Printers import register_ue4_printers
register_ue4_printers(None)
print("Registered pretty printers for UE4 classes")
end
I also encountered this when adding: skip -gfi /usr/include/* skip -gfi /usr/include/*/* skip -gfi /usr/include/*/*/* skip -gfi /usr/include/*/*/*/* to .gdbinit. Seems that anything making output in .gdbinit makes this test fail which is annoying. (In reply to peje66 from comment #2) > I also encountered this when adding: > skip -gfi /usr/include/* > skip -gfi /usr/include/*/* > skip -gfi /usr/include/*/*/* > skip -gfi /usr/include/*/*/*/* > > to .gdbinit. Seems that anything making output in .gdbinit makes this test > fail which is annoying. Running latest master (In reply to peje66 from comment #3) > (In reply to peje66 from comment #2) > > I also encountered this when adding: > > skip -gfi /usr/include/* > > skip -gfi /usr/include/*/* > > skip -gfi /usr/include/*/*/* > > skip -gfi /usr/include/*/*/*/* > > > > to .gdbinit. Seems that anything making output in .gdbinit makes this test > > fail which is annoying. > > Running latest master A workaround is to put: show version as the first line in .gdbinit 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 428688, bug 446786 FIXED-IN: 5.12.230800 M +29 -15 plugins/gdb/debugsession.cpp https://invent.kde.org/kdevelop/kdevelop/-/commit/a974c3c66130f9e454de1006a7894e4002541dd0 |