public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: drop 32-bit ARM support for RHEL 10+
@ 2026-06-28  0:02 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2026-06-28  0:02 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/gdb
            Branch : gdb-17.2-rebase-f44
            Commit : bdecb7fcb87bbbc90b9fffc67226a7dc89a0e538
            Author : Andrew Burgess <aburgess@redhat.com>
            Date   : 2025-05-29T16:57:26+01:00
            Stats  : +18/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/gdb/c/bdecb7fcb87bbbc90b9fffc67226a7dc89a0e538?branch=gdb-17.2-rebase-f44

            Log:
            drop 32-bit ARM support for RHEL 10+

32-bit ARM is not a RHEL supported target.  Support for 32-bit ARM was
added to the gdb.spec file, unconditionally, long ago, and RHEL picked
this up.

But I think it is time for a clean up.  Lets drop 32-bit ARM support
for RHEL 10+, but retain 32-bit ARM support for:

  * Fedora -- Fedora is not RHEL, we can support more targets if we
       wish, and 32-bit ARM SBCs are pretty popular, so lets retain
       support.

  * RHEL 9 and earlier -- It's probably a little late in the life
       cycle to drop 32-bit ARM support from these RHEL versions.  So,
       in the spirit of least surprise, lets retain 32-bit ARM
       support.

---
diff --git a/gdb.spec b/gdb.spec
index f431b1e..1fc6cf2 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -441,6 +441,17 @@ COMMON_GDB_CONFIGURE_FLAGS="\
 %endif
 "
 
+# The base set of targets that Fedora and RHEL support.  These are the
+# targets that every GDB build, regardless of host architecture,
+# supports debugging.  This means that these targets can be used as
+# remote debug targets.
+ENABLED_TARGETS="aarch64-linux-gnu,powerpc-linux-gnu,riscv64-linux-gnu,s390-linux-gnu,x86_64-redhat-linux-gnu"
+
+# Fedora, and older RHEL also have 32-bit ARM support.
+%if 0%{?fedora:1} || (0%{?rhel:1} && 0%{?rhel} < 10)
+ENABLED_TARGETS="$ENABLED_TARGETS,arm-linux-gnu"
+%endif
+
 # Identify the build directory with the version of gdb as well as the
 # architecture, to allow for mutliple versions to be installed and
 # built.
@@ -481,7 +492,7 @@ CXXFLAGS="$CXXFLAGS %{?_with_asan:-fsanitize=address}"
 %endif
         --with-auto-load-dir='$debugdir:$datadir/auto-load%{?scl::%{_root_datadir}/gdb/auto-load}'      \
         --with-auto-load-safe-path='$debugdir:$datadir/auto-load%{?scl::%{_root_datadir}/gdb/auto-load}'        \
-        --enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu,riscv64-linux-gnu,x86_64-redhat-linux-gnu     \
+        --enable-targets=${ENABLED_TARGETS}     \
         %{_target_platform}
 
 # Prepare gdb/config.h first.
@@ -544,7 +555,7 @@ $(: ppc64 host build crashes on ppc variant of libexpat.so )    \
 %endif
         --with-auto-load-dir='$debugdir:$datadir/auto-load%{?scl::%{_root_datadir}/gdb/auto-load}'      \
         --with-auto-load-safe-path='$debugdir:$datadir/auto-load%{?scl::%{_root_datadir}/gdb/auto-load}'        \
-        --enable-targets=s390-linux-gnu,powerpc-linux-gnu,arm-linux-gnu,aarch64-linux-gnu,riscv64-linux-gnu,x86_64-redhat-linux-gnu     \
+        --enable-targets=${ENABLED_TARGETS}     \
         %{_target_platform}
 
 if [ -z "%{!?_with_profile:no}" ]
@@ -923,6 +934,11 @@ fi
 # endif scl
 
 %changelog
+* Wed May 28 2025 Andrew Burgess <aburgess@redhat.com>
+- Remove 32-bit ARM support for RHEL 10+.  This is not a RHEL
+  supported target, so lets drop this target.  Retain for older RHEL
+  versions, as well as Fedora.
+
 * Mon May 12 2025 Keith Seitz <keiths@redhat.com>
 - Remove gdb-rhbz1149205-catch-syscall-after-fork-test.patch
   in favor of upstream commit.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-28  0:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-28  0:02 [rpms/gdb] gdb-17.2-rebase-f44: drop 32-bit ARM support for RHEL 10+ Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox