[all-commits] [llvm/llvm-project] 00b2a9: [cross-project-tests] Make GDB version string pars...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Wed Feb 9 03:46:31 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00b2a9c9da40ef17c7645bc6cb1a7614cda1aac5
      https://github.com/llvm/llvm-project/commit/00b2a9c9da40ef17c7645bc6cb1a7614cda1aac5
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2022-02-09 (Wed, 09 Feb 2022)

  Changed paths:
    M cross-project-tests/lit.cfg.py

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

Follow up to D118468 (5257efdc5b30212b62a9d68857dc8e66d0e1a863).

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.




More information about the All-commits mailing list