From f557eb43d9ecb07c6f4dae86a2efc9e17a062302 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 23 2022 17:50:48 +0000 Subject: import lldb-14.0.0-2.module+el8.7.0+15584+063501eb --- diff --git a/SOURCES/disable-std-vector-prettyprinter.patch b/SOURCES/disable-std-vector-prettyprinter.patch new file mode 100644 index 0000000..1f1150b --- /dev/null +++ b/SOURCES/disable-std-vector-prettyprinter.patch @@ -0,0 +1,15 @@ +diff -ruN lldb-14.0.0.src.orig/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp lldb-14.0.0.src/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp +--- a/lldb-14.0.0.src.orig/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp 2022-03-14 10:44:55.000000000 +0100 ++++ b/lldb-14.0.0.src/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp 2022-06-08 07:06:32.227607437 +0200 +@@ -940,11 +940,6 @@ + stl_deref_flags.SetFrontEndWantsDereference(); + + cpp_category_sp->GetRegexTypeSyntheticsContainer()->Add( +- RegularExpression("^std::vector<.+>(( )?&)?$"), +- SyntheticChildrenSP(new ScriptedSyntheticChildren( +- stl_synth_flags, +- "lldb.formatters.cpp.gnu_libstdcpp.StdVectorSynthProvider"))); +- cpp_category_sp->GetRegexTypeSyntheticsContainer()->Add( + RegularExpression("^std::map<.+> >(( )?&)?$"), + SyntheticChildrenSP(new ScriptedSyntheticChildren( + stl_synth_flags, diff --git a/SPECS/lldb.spec b/SPECS/lldb.spec index fa1fd87..cf005ee 100644 --- a/SPECS/lldb.spec +++ b/SPECS/lldb.spec @@ -4,7 +4,7 @@ Name: lldb Version: %{lldb_version}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Next generation high-performance debugger License: NCSA @@ -32,6 +32,15 @@ BuildRequires: multilib-rpm-config Requires: python3-lldb +# There is a problem with the debug info generated by the +# GCC version we ship in RHEL 8. It somehow makes it very +# hard for lldb to inspect std::vector types. +# Disable the pretty-printer for now, since otherwise +# such vectors look empty to the developer even though +# they aren't. +# See https://bugzilla.redhat.com/show_bug.cgi?id=2082508 +Patch001: disable-std-vector-prettyprinter.patch + # For origin certification BuildRequires: gnupg2 @@ -132,6 +141,9 @@ rm -f %{buildroot}%{python3_sitearch}/six.* %{python3_sitearch}/lldb %changelog +* Wed Jun 08 2022 Timm Bäder - 14.0.0-2 +- Disable libstdc++ std::vector prettyprinter + * Thu Apr 07 2022 Timm Bäder - 14.0.0-1 - Update to 14.0.0