public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Remove upstreamed gdb-6.3-gstack-20050411.patch.
Date: Sun, 28 Jun 2026 00:02:00 GMT [thread overview]
Message-ID: <178260492077.1.13241453434952980878.rpms-gdb-1a098a7709b5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 1a098a7709b5525319ce1747dd6a9141028effb4
Author : Alexandra Hájková <ahajkova@redhat.com>
Date : 2025-01-23T11:57:39+01:00
Stats : +17/-289 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/1a098a7709b5525319ce1747dd6a9141028effb4?branch=gdb-17.2-rebase-f44
Log:
Remove upstreamed gdb-6.3-gstack-20050411.patch.
---
diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include
index a9aa10e..31538e6 100644
--- a/_gdb.spec.Patch.include
+++ b/_gdb.spec.Patch.include
@@ -1,48 +1,43 @@
# Check distro name is included in the version output.
Patch001: gdb-6.3-rh-testversion-20041202.patch
-# Add a wrapper script to GDB that implements pstack using the
-# --readnever option.
-#=push
-Patch002: gdb-6.3-gstack-20050411.patch
-
# Test sideeffects of skipping ppc .so libs trampolines (BZ 218379).
#=fedoratest
-Patch003: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
+Patch002: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
# Support for stepping over PPC atomic instruction sequences (BZ 237572).
#=fedoratest
-Patch004: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
+Patch003: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
# Test gcore memory and time requirements for large inferiors.
#=fedoratest
-Patch005: gdb-6.5-gcore-buffer-limit-test.patch
+Patch004: gdb-6.5-gcore-buffer-limit-test.patch
# Test GCORE for shmid 0 shared memory mappings.
#=fedoratest: But it is broken anyway, sometimes the case being tested is not reproducible.
-Patch006: gdb-6.3-mapping-zero-inode-test.patch
+Patch005: gdb-6.3-mapping-zero-inode-test.patch
# Fix resolving of variables at locations lists in prelinked libs (BZ 466901).
#=fedoratest
-Patch007: gdb-6.8-bz466901-backtrace-full-prelinked.patch
+Patch006: gdb-6.8-bz466901-backtrace-full-prelinked.patch
# Fix follow-exec for C++ programs (bugreported by Martin Stransky).
#=fedoratest
-Patch008: gdb-archer-next-over-throw-cxx-exec.patch
+Patch007: gdb-archer-next-over-throw-cxx-exec.patch
# Testcase for `Setting solib-absolute-prefix breaks vDSO' (BZ 818343).
#=fedoratest
-Patch009: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
+Patch008: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
# Fix '`catch syscall' doesn't work for parent after `fork' is called'
# (Philippe Waroquiers, RH BZ 1149205).
#=fedoratest
-Patch010: gdb-rhbz1149205-catch-syscall-after-fork-test.patch
+Patch009: gdb-rhbz1149205-catch-syscall-after-fork-test.patch
# Fix '[ppc64] and [s390x] wrong prologue skip on -O2 -g code' (Jan
# Kratochvil, RH BZ 1084404).
#=fedoratest
-Patch011: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch
+Patch010: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch
# Update gdb-add-index.sh such that, when the GDB environment
# variable is not set, the script is smarter than just looking for
@@ -56,7 +51,7 @@ Patch011: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch
# https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot
#
#=fedora
-Patch012: gdb-add-index.patch
+Patch011: gdb-add-index.patch
# Backport of upstream commit 36fb20fa93484b104d. This is not really
# relevant for our branch, but later commits that are important, and
@@ -80,17 +75,17 @@ Patch012: gdb-add-index.patch
#
# Change-Id: I4e25ec26ab06636629adebd02ceb161ee31c232d
# Approved-by: Kevin Buettner <kevinb@redhat.com>
-Patch013: gdb-remove-qnx-neutrino-support.patch
+Patch012: gdb-remove-qnx-neutrino-support.patch
# Backport patches related to build-id usage when opening a core
# file, and also improving general build-id based lookup. These will
# all drop out when rebasing to GDB 16.
-Patch014: gdb-backport-buildid-related-changes.patch
+Patch013: gdb-backport-buildid-related-changes.patch
# Not a backport. Add a new script which hooks into GDB and suggests
# RPMs to install when GDB finds an objfile with no debug info.
-Patch015: gdb-add-rpm-suggestion-script.patch
+Patch014: gdb-add-rpm-suggestion-script.patch
-Patch016: gdb-catchpoint-re-set.patch
+Patch015: gdb-catchpoint-re-set.patch
diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include
index 5df36dd..f630fc2 100644
--- a/_gdb.spec.patch.include
+++ b/_gdb.spec.patch.include
@@ -13,4 +13,3 @@
%patch -p1 -P013
%patch -p1 -P014
%patch -p1 -P015
-%patch -p1 -P016
diff --git a/_patch_order b/_patch_order
index 2df64cd..5ae7707 100644
--- a/_patch_order
+++ b/_patch_order
@@ -1,5 +1,4 @@
gdb-6.3-rh-testversion-20041202.patch
-gdb-6.3-gstack-20050411.patch
gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
gdb-6.5-gcore-buffer-limit-test.patch
diff --git a/gdb-6.3-gstack-20050411.patch b/gdb-6.3-gstack-20050411.patch
deleted file mode 100644
index 90fbfa1..0000000
--- a/gdb-6.3-gstack-20050411.patch
+++ /dev/null
@@ -1,268 +0,0 @@
-From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
-From: Andrew Cagney <cagney@gnu.org>
-Date: Fri, 27 Oct 2017 21:07:50 +0200
-Subject: gdb-6.3-gstack-20050411.patch
-
-;; Add a wrapper script to GDB that implements pstack using the
-;; --readnever option.
-;;=push
-
-2004-11-23 Andrew Cagney <cagney@redhat.com>
-
- * Makefile.in (uninstall-gstack, install-gstack): New rules, add
- to install and uninstall.
- * gstack.sh, gstack.1: New files.
-
-diff --git a/gdb/Makefile.in b/gdb/Makefile.in
---- a/gdb/Makefile.in
-+++ b/gdb/Makefile.in
-@@ -2071,7 +2071,7 @@ info install-info clean-info dvi install-dvi pdf install-pdf html install-html:
- install: all
- @$(MAKE) $(FLAGS_TO_PASS) install-only
-
--install-only: $(CONFIG_INSTALL)
-+install-only: install-gstack $(CONFIG_INSTALL)
- transformed_name=`t='$(program_transform_name)'; \
- echo gdb | sed -e "$$t"` ; \
- if test "x$$transformed_name" = x; then \
-@@ -2121,7 +2121,25 @@ install-guile:
- install-python:
- $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb
-
--uninstall: force $(CONFIG_UNINSTALL)
-+GSTACK=gstack
-+.PHONY: install-gstack
-+install-gstack:
-+ transformed_name=`t='$(program_transform_name)'; \
-+ echo $(GSTACK) | sed -e "$$t"` ; \
-+ if test "x$$transformed_name" = x; then \
-+ transformed_name=$(GSTACK) ; \
-+ else \
-+ true ; \
-+ fi ; \
-+ $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir) ; \
-+ $(INSTALL_PROGRAM) $(srcdir)/$(GSTACK).sh \
-+ $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
-+ : $(SHELL) $(srcdir)/../mkinstalldirs \
-+ $(DESTDIR)$(man1dir) ; \
-+ : $(INSTALL_DATA) $(srcdir)/gstack.1 \
-+ $(DESTDIR)$(man1dir)/$$transformed_name.1
-+
-+uninstall: force uninstall-gstack $(CONFIG_UNINSTALL)
- transformed_name=`t='$(program_transform_name)'; \
- echo gdb | sed -e $$t` ; \
- if test "x$$transformed_name" = x; then \
-@@ -2152,6 +2170,28 @@ uninstall: force $(CONFIG_UNINSTALL)
- rm -f $(DESTDIR)$(bindir)/$$transformed_name
- @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
-
-+.PHONY: uninstall-gstack
-+uninstall-gstack:
-+ transformed_name=`t='$(program_transform_name)'; \
-+ echo $(GSTACK) | sed -e $$t` ; \
-+ if test "x$$transformed_name" = x; then \
-+ transformed_name=$(GSTACK) ; \
-+ else \
-+ true ; \
-+ fi ; \
-+ rm -f $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) \
-+ $(DESTDIR)$(man1dir)/$$transformed_name.1
-+
-+# The C++ name parser can be built standalone for testing.
-+test-cp-name-parser.o: cp-name-parser.c
-+ $(COMPILE) -DTEST_CPNAMES cp-name-parser.c
-+ $(POSTCOMPILE)
-+
-+test-cp-name-parser$(EXEEXT): test-cp-name-parser.o $(LIBIBERTY)
-+ $(ECHO_CXXLD) $(CC_LD) $(INTERNAL_LDFLAGS) \
-+ -o test-cp-name-parser$(EXEEXT) test-cp-name-parser.o \
-+ $(LIBIBERTY)
-+
- # We do this by grepping through sources. If that turns out to be too slow,
- # maybe we could just require every .o file to have an initialization routine
- # of a given name (top.o -> _initialize_top, etc.).
-diff --git a/gdb/gstack.sh b/gdb/gstack.sh
-new file mode 100644
---- /dev/null
-+++ b/gdb/gstack.sh
-@@ -0,0 +1,43 @@
-+#!/bin/sh
-+
-+if test $# -ne 1; then
-+ echo "Usage: `basename $0 .sh` <process-id>" 1>&2
-+ exit 1
-+fi
-+
-+if test ! -r /proc/$1; then
-+ echo "Process $1 not found." 1>&2
-+ exit 1
-+fi
-+
-+# GDB doesn't allow "thread apply all bt" when the process isn't
-+# threaded; need to peek at the process to determine if that or the
-+# simpler "bt" should be used.
-+
-+backtrace="bt"
-+if test -d /proc/$1/task ; then
-+ # Newer kernel; has a task/ directory.
-+ if test `/bin/ls /proc/$1/task | /usr/bin/wc -l` -gt 1 2>/dev/null ; then
-+ backtrace="thread apply all bt"
-+ fi
-+elif test -f /proc/$1/maps ; then
-+ # Older kernel; go by it loading libpthread.
-+ if /bin/grep -e libpthread /proc/$1/maps > /dev/null 2>&1 ; then
-+ backtrace="thread apply all bt"
-+ fi
-+fi
-+
-+GDB=${GDB:-gdb}
-+
-+# Run GDB, strip out unwanted noise.
-+# --readnever is no longer used since .gdb_index is now in use.
-+$GDB --quiet -nx $GDBARGS /proc/$1/exe $1 <<EOF 2>&1 |
-+set width 0
-+set height 0
-+set pagination no
-+$backtrace
-+EOF
-+/bin/sed -n \
-+ -e 's/^\((gdb) \)*//' \
-+ -e '/^#/p' \
-+ -e '/^Thread/p'
-diff --git a/gdb/testsuite/gdb.base/gstack.c b/gdb/testsuite/gdb.base/gstack.c
-new file mode 100644
---- /dev/null
-+++ b/gdb/testsuite/gdb.base/gstack.c
-@@ -0,0 +1,43 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+ Copyright 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
-+
-+ This program is free software; you can redistribute it and/or modify
-+ it under the terms of the GNU General Public License as published by
-+ the Free Software Foundation; either version 3 of the License, or
-+ (at your option) any later version.
-+
-+ This program is distributed in the hope that it will be useful,
-+ but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ GNU General Public License for more details.
-+
-+ You should have received a copy of the GNU General Public License
-+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
-+
-+#include <stdio.h>
-+#include <unistd.h>
-+#include <string.h>
-+
-+void
-+func (void)
-+{
-+ const char msg[] = "looping\n";
-+
-+ /* Use the most simple notification not to get caught by attach on exiting
-+ the function. */
-+ write (1, msg, strlen (msg));
-+
-+ for (;;);
-+}
-+
-+int
-+main (void)
-+{
-+ alarm (60);
-+ nice (100);
-+
-+ func ();
-+
-+ return 0;
-+}
-diff --git a/gdb/testsuite/gdb.base/gstack.exp b/gdb/testsuite/gdb.base/gstack.exp
-new file mode 100644
---- /dev/null
-+++ b/gdb/testsuite/gdb.base/gstack.exp
-@@ -0,0 +1,84 @@
-+# Copyright (C) 2012 Free Software Foundation, Inc.
-+
-+# This program is free software; you can redistribute it and/or modify
-+# it under the terms of the GNU General Public License as published by
-+# the Free Software Foundation; either version 3 of the License, or
-+# (at your option) any later version.
-+#
-+# This program is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+# GNU General Public License for more details.
-+#
-+# You should have received a copy of the GNU General Public License
-+# along with this program. If not, see <http://www.gnu.org/licenses/>.
-+
-+set testfile gstack
-+set executable ${testfile}
-+set binfile [standard_output_file $executable]
-+if {[build_executable ${testfile} ${executable} "" {debug}] == -1} {
-+ return -1
-+}
-+
-+set test "spawn inferior"
-+set command "${binfile}"
-+set res [remote_spawn host $command];
-+if { $res < 0 || $res == "" } {
-+ perror "Spawning $command failed."
-+ fail $test
-+ return
-+}
-+
-+# The spawn id of the test inferior.
-+set test_spawn_id $res
-+
-+set use_gdb_stub 1
-+set pid [exp_pid -i $res]
-+gdb_expect {
-+ -re "looping\r\n" {
-+ pass $test
-+ }
-+ eof {
-+ fail "$test (eof)"
-+ return
-+ }
-+ timeout {
-+ fail "$test (timeout)"
-+ return
-+ }
-+}
-+
-+# Testcase uses the most simple notification not to get caught by attach on
-+# exiting the function. Still we could retry the gstack command if we fail.
-+
-+set test "spawn gstack"
-+set command "sh -c GDB=$GDB\\ GDBARGS=-data-directory\\\\\\ $GDB_DATA_DIRECTORY\\ sh\\ ${srcdir}/../gstack.sh\\ $pid\\;echo\\ GSTACK-END"
-+set res [remote_spawn host $command];
-+if { $res < 0 || $res == "" } {
-+ perror "Spawning $command failed."
-+ fail $test
-+}
-+
-+set gdb_spawn_id $res
-+
-+gdb_test_multiple "" $test {
-+ -re "^#0 +(0x\[0-9a-f\]+ in )?\\.?func \\(\\) at \[^\r\n\]*\r\n#1 +0x\[0-9a-f\]+ in \\.?main \\(\\) at \[^\r\n\]*\r\nGSTACK-END\r\n\$" {
-+ pass $test
-+ }
-+}
-+
-+gdb_test_multiple "" "gstack exits" {
-+ eof {
-+ set result [wait -i $gdb_spawn_id]
-+ verbose $result
-+
-+ gdb_assert { [lindex $result 2] == 0 } "gstack exits with no error"
-+ gdb_assert { [lindex $result 3] == 0 } "gstack's exit status is 0"
-+
-+ remote_close host
-+ clear_gdb_spawn_id
-+ }
-+}
-+
-+# Kill the test inferior.
-+kill_wait_spawned_process $test_spawn_id
diff --git a/gdb.spec b/gdb.spec
index df74b88..64641a2 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -928,6 +928,9 @@ fi
# endif scl
%changelog
+* Thu Jan 23 2024 Alexandra Hájková <ahajkova@redhat.com>
+- Remove upstreamed gdb-6.3-gstack-20050411.patch.
+
* Fri Jan 17 2025
- remove gdb-test-bt-cfi-without-die.patch. This test has been
accepted upstream and will make its way back to testing with
reply other threads:[~2026-06-28 0:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178260492077.1.13241453434952980878.rpms-gdb-1a098a7709b5@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox