[libcxx-commits] [libcxx] [libc++] Enable the GDB pretty printers for Clang (PR #135484)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sat Apr 12 01:28:08 PDT 2025


https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/135484

The GDB pretty printer test works just fine with Clang in the CI now, except that it breaks (not exactly unexpectedly) with optimizations enabled.


>From 9750a3d637164b72728f0ec940b397c2e6a3573f Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Sat, 12 Apr 2025 10:26:55 +0200
Subject: [PATCH] [libc++] Enable the GDB pretty printers for Clang

---
 libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp b/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp
index dcdce261298c1..d82842fd5ad5c 100644
--- a/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp
+++ b/libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp
@@ -8,12 +8,10 @@
 
 // REQUIRES: host-has-gdb-with-python
 // REQUIRES: locale.en_US.UTF-8
+// REQUIRES: optimization=none
 // UNSUPPORTED: no-localization
 // UNSUPPORTED: c++03
 
-// TODO: Investigate these failures which break the CI.
-// UNSUPPORTED: clang-18, clang-19, clang-20, clang-21
-
 // The Android libc++ tests are run on a non-Android host, connected to an
 // Android device over adb. gdb needs special support to make this work (e.g.
 // gdbclient.py, ndk-gdb.py, gdbserver), and the Android organization doesn't



More information about the libcxx-commits mailing list