| Summary: | KDevelop wrongly considers GDB 10 as earlier than GDB 7.0.0 | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | jerome.gardou |
| Component: | CPP Debugger | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde, niko.sams, q.kde |
| Priority: | NOR | ||
| Version First Reported In: | 5.6.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | 8831937ffe4849258ed282cb0c720fe1cf2705d4 | Version Fixed/Implemented In: | 5.6.1 |
| Sentry Crash Report: | |||
|
Description
jerome.gardou
2020-11-13 11:03:58 UTC
This is how somebody thought it would be a good idea to test for version >= 7 in the file kdevelop-5.6.0/plugins/gdb/debugsession.cpp
QRegExp rx(QStringLiteral("([7-9]+)\\.([0-9]+)(\\.([0-9]+))?"));
int idx = rx.indexIn(s.first());
if (idx == -1)
...
Oh dear.
|