Backport upstream commit b0196f0c87e13cc73039039b89b27580823dd573

Resolves: RHEL-220607
This commit is contained in:
Guinevere Larsen 2026-07-30 12:11:32 -03:00
parent a2465e1e57
commit 40fac9d185
5 changed files with 2249 additions and 2 deletions

View File

@ -103,3 +103,7 @@ Patch018: gdb-backport-s390x-return-crash.patch
# to fix a security weakness.
Patch019: gdb-backport-rhel-159887-getpkt-overflow.patch
# Backport upstream commit b0196f0c87e13cc73039039b89b27580823dd573
# to fix Red Hat tests
Patch020: gdb-backport-220607-incorrect-rwatch-trigger.patch

View File

@ -17,3 +17,4 @@ gdb-backport-libiberty-sync.patch
gdb-backport-corefile-use-after-free-fix.patch
gdb-backport-s390x-return-crash.patch
gdb-backport-rhel-159887-getpkt-overflow.patch
gdb-backport-220607-incorrect-rwatch-trigger.patch

File diff suppressed because it is too large Load Diff

View File

@ -101,7 +101,7 @@ diff --git a/gdbserver/remote-utils.cc b/gdbserver/remote-utils.cc
+ long case there's no point repeating the loop, all GDB can do is
+ resend the original packet, which will be too long again, and
+ we'll be stuck in this loop forever. */
+ if (!write_prim ("-", 1) || !fits_in_buf)
+ if (write_prim ("-", 1) != 1 || !fits_in_buf)
return -1;
}

View File

@ -45,7 +45,7 @@ Version: 17.2
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
Release: 2%{?dist}
Release: 3%{?dist}
License: GPL-3.0-or-later AND BSD-3-Clause AND FSFAP AND LGPL-2.1-or-later AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND GFDL-1.3-or-later AND LGPL-2.0-or-later WITH GCC-exception-2.0 AND GPL-3.0-or-later WITH GCC-exception-3.1 AND GPL-2.0-or-later WITH GNU-compiler-exception AND MIT
# Do not provide URL for snapshots as the file lasts there only for 2 days.
@ -925,6 +925,10 @@ fi
# endif scl
%changelog
* Thu Jul 30 2026 Guinevere Larsen <guinevere@redhat.com> - 17.2-3
- Backport upstream commit b0196f0c87e13cc73039039b89b27580823dd573
to fix RHEL-220607.
* Thu Jul 30 2026 Guinevere Larsen <guinevere@redhat.com> - 17.2-2
- Backport commit 9d3cf9efd51ebae3f45bb49e3544cb7eeb63a138 to fix
RHEL-159887.