Skip to content
Snippets Groups Projects
Commit 00b2a9c9 authored by OCHyams's avatar OCHyams
Browse files

[cross-project-tests] Make GDB version string parsing more robust

Follow up to D118468 (5257efdc).

When built from source, gdb's version string looks like this:

    GNU gdb (GDB) 9.2
    ...

But for installed versions it looks different. E.g.

    GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
    ...

Use a regex rather than str.parition in the version string parsing in order to
handle this case too.
parent 29caa858
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment