[libcxx-commits] [PATCH] D124569: Re-enable libc++ gdb-pretty-printer tests for all versions of clang.

Sterling Augustine via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 27 16:02:01 PDT 2022


saugustine created this revision.
saugustine added a reviewer: ldionne.
Herald added a project: All.
saugustine requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

The bootstrap tests were failing because the environment has a version
of gdb too old to read dwarf5 as generated by clang. The problem isn't
just pretty printer tests--this version of gdb will fail to read any
program compiled with those versions of clang.

More discussion here:

  https://discourse.llvm.org/t/gdb-10-1-cant-read-clangs-dwarf-v5/6035/11


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124569

Files:
  libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp


Index: libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp
===================================================================
--- libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp
+++ libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp
@@ -11,9 +11,6 @@
 // UNSUPPORTED: libcpp-has-no-localization
 // UNSUPPORTED: c++03
 
-// TODO: Investigate this failure, which happens only with the Bootstrapping build.
-// UNSUPPORTED: clang-14, clang-15
-
 // RUN: %{cxx} %{flags} %s -o %t.exe %{compile_flags} -g %{link_flags}
 // Ensure locale-independence for unicode tests.
 // RUN: env LANG=en_US.UTF-8 %{gdb} -nx -batch -iex "set autoload off" -ex "source %S/../../../utils/gdb/libcxx/printers.py" -ex "python register_libcxx_printer_loader()" -ex "source %S/gdb_pretty_printer_test.py" %t.exe


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124569.425636.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220427/e983710a/attachment.bin>


More information about the libcxx-commits mailing list