Work around a lldb-server crash on ppc64le

Resolves: rhbz#2052982
This commit is contained in:
Timm Bäder 2022-03-30 08:07:25 +02:00
parent 2358859f44
commit 60cb7465ab
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -ruN lldb-13.0.1.src.orig/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.h lldb-13.0.1.src/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.h
--- a/lldb-13.0.1.src.orig/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.h 2022-01-20 22:31:59.000000000 +0100
+++ b/lldb-13.0.1.src/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.h 2022-03-30 08:02:16.292360951 +0200
@@ -122,7 +122,7 @@
int mode; // Defines if watchpoint is read/write/access.
};
- std::array<DREG, 4> m_hwp_regs;
+ std::array<DREG, 16> m_hwp_regs;
// 16 is just a maximum value, query hardware for actual watchpoint count
uint32_t m_max_hwp_supported = 16;

View File

@ -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
@ -13,6 +13,9 @@ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{lldb_v
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{lldb_version}%{?rc_ver:-rc%{rc_ver}}/%{lldb_srcdir}.tar.xz.sig
Source2: tstellar-gpg-key.asc
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2052982
Patch0: increase-m_hwp_regs-size.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
@ -128,6 +131,9 @@ rm -f %{buildroot}%{python3_sitearch}/six.*
%{python3_sitearch}/lldb
%changelog
* Wed Mar 30 2022 Timm Bäder <tbaeder@redhat.com> - 13.0.1-2
- Work around a lldb-server crash on ppc64le
* Thu Feb 03 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-1
- 13.0.1 Release