[all-commits] [llvm/llvm-project] 5257ef: [cross-project-tests] XFAIL llgdb-tests when gdb c...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Wed Feb 9 02:54:04 PST 2022


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

  Changed paths:
    M cross-project-tests/debuginfo-tests/llgdb-tests/asan-blocks.c
    M cross-project-tests/debuginfo-tests/llgdb-tests/asan-deque.cpp
    M cross-project-tests/debuginfo-tests/llgdb-tests/asan.c
    M cross-project-tests/debuginfo-tests/llgdb-tests/nested-struct.cpp
    M cross-project-tests/debuginfo-tests/llgdb-tests/nrvo-string.cpp
    M cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c
    M cross-project-tests/debuginfo-tests/llgdb-tests/sret.cpp
    M cross-project-tests/debuginfo-tests/llgdb-tests/static-member-2.cpp
    M cross-project-tests/debuginfo-tests/llgdb-tests/static-member.cpp
    M cross-project-tests/lit.cfg.py

  Log Message:
  -----------
  [cross-project-tests] XFAIL llgdb-tests when gdb can't read clang's DWARF

Tests in the `cross-project-tests/debuginfo-tests/llgdb-tests` directory run
gdb on non-darwin platforms. gdb versions less than 10.1 cannot parse the DWARF
v5 emitted by clang, and DWARF v5 is now the default, so these tests fail on
Linux with gdb versions less than 10.1. This patch lets us XFAIL the tests
under these conditions.

Add `gdb-clang-incompatibility` to the `available_features` in
`cross-project-tests/lit.cfg.py` when clang's default DWARF version is 5 or
greater and the gdb (if found) version is less than 10.1.

Discourse discussion:
https://llvm.discourse.group/t/gdb-10-1-cant-read-clangs-dwarf-v5/6035

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D118468




More information about the All-commits mailing list