Bug 429054 - KDevelop wrongly considers GDB 10 as earlier than GDB 7.0.0
Summary: KDevelop wrongly considers GDB 10 as earlier than GDB 7.0.0
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (other bugs)
Version First Reported In: 5.6.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-13 11:03 UTC by jerome.gardou
Modified: 2020-11-13 17:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.6.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jerome.gardou 2020-11-13 11:03:58 UTC
SUMMARY
As seen in Fedora Core 33, where GDB is version 10.1

STEPS TO REPRODUCE
1. Install KDevelop 5.6.0
2. Install GDB 10.1
3. Try to debug a program using KDevelop interface.

OBSERVED RESULT
A pop-up asking for GDB 7.0.0 or greater will appear


EXPECTED RESULT
Kdevelop must launch GDB and start debugging the program

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Core 33 ?
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Comment 1 steveren 2020-11-13 17:00:59 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.