public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: gstack: Turn off --readnever (suggested by Oliver Henshaw).
@ 2026-06-27 23:55 Jan Kratochvil
  0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2026-06-27 23:55 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 67644b518c8d0e404cd6c72868541fce12ff310d
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2012-02-13T20:17:47+01:00
Stats  : +12/-19 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/67644b518c8d0e404cd6c72868541fce12ff310d?branch=gdb-17.2-rebase-f44

Log:
gstack: Turn off --readnever (suggested by Oliver Henshaw).

---
diff --git a/gdb-6.3-gstack-20050411.patch b/gdb-6.3-gstack-20050411.patch
index 960889a..d6f4cb0 100644
--- a/gdb-6.3-gstack-20050411.patch
+++ b/gdb-6.3-gstack-20050411.patch
@@ -67,7 +67,7 @@ Index: gdb-7.4.50.20120103/gdb/gstack.sh
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-7.4.50.20120103/gdb/gstack.sh	2012-01-03 05:52:37.278385632 +0100
-@@ -0,0 +1,48 @@
+@@ -0,0 +1,43 @@
 +#!/bin/sh
 +
 +if test $# -ne 1; then
@@ -99,14 +99,9 @@ Index: gdb-7.4.50.20120103/gdb/gstack.sh
 +
 +GDB=${GDB:-/usr/bin/gdb}
 +
-+if $GDB -nx --quiet --batch --readnever > /dev/null 2>&1; then
-+    readnever=--readnever
-+else
-+    readnever=
-+fi
-+
 +# Run GDB, strip out unwanted noise.
-+$GDB --quiet $readnever -nx /proc/$1/exe $1 <<EOF 2>&1 | 
++# --readnever is no longer used since .gdb_index is now in use.
++$GDB --quiet -nx /proc/$1/exe $1 <<EOF 2>&1 | 
 +set width 0
 +set height 0
 +set pagination no
@@ -120,8 +115,8 @@ Index: gdb-7.4.50.20120103/gdb/testsuite/gdb.base/gstack.exp
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ gdb-7.4.50.20120103/gdb/testsuite/gdb.base/gstack.exp	2012-01-03 05:52:37.279385629 +0100
-@@ -0,0 +1,71 @@
-+# Copyright (C) 2010 Free Software Foundation, Inc.
+@@ -0,0 +1,66 @@
++# 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
@@ -151,6 +146,7 @@ Index: gdb-7.4.50.20120103/gdb/testsuite/gdb.base/gstack.exp
 +    fail $test
 +    return
 +}
++set use_gdb_stub 1
 +set pid [exp_pid -i $res]
 +gdb_expect {
 +    -re "looping\r\n" {
@@ -178,16 +174,10 @@ Index: gdb-7.4.50.20120103/gdb/testsuite/gdb.base/gstack.exp
 +    fail $test
 +}
 +set pid [exp_pid -i $res]
-+gdb_expect {
-+    -re {^#0 +0x[0-9a-f]+ in \.?func \(\)\r\n#1 +0x[0-9a-f]+ in \.?main \(\)\r\nGSTACK-END\r\n$} {
++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
 +    }
-+    eof {
-+	fail "$test (eof)"
-+    }
-+    timeout {
-+	fail "$test (timeout)"
-+    }
 +}
 +gdb_exit
 +

diff --git a/gdb.spec b/gdb.spec
index 7e0f680..6bb6b30 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -26,7 +26,7 @@ Version: 7.4.50.%{snap}
 
 # 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: 16%{?dist}
+Release: 17%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
 Group: Development/Debuggers
@@ -1180,6 +1180,9 @@ fi
 %{_infodir}/gdb.info*
 
 %changelog
+* Mon Feb 13 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120120-17.fc17
+- gstack: Turn off --readnever (suggested by Oliver Henshaw).
+
 * Fri Feb 10 2012 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.4.50.20120120-16.fc17
 - [RHELs] Drop simulation of legacy behavior - new GDB should behave as new GDB.
 

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

only message in thread, other threads:[~2026-06-27 23:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 23:55 [rpms/gdb] gdb-17.2-rebase-f44: gstack: Turn off --readnever (suggested by Oliver Henshaw) Jan Kratochvil

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