[gdb/f20] Fix %{_bindir}gdb-add-index to also use -iex 'set auto-load no'.
Jan Kratochvil
jankratochvil at fedoraproject.org
Sun Nov 3 15:09:08 UTC 2013
commit 7492fba56d86c2ceb1b7f75ecc831e4e731a9408
Author: Jan Kratochvil <jan.kratochvil at redhat.com>
Date: Sun Nov 3 16:06:52 2013 +0100
Fix %{_bindir}gdb-add-index to also use -iex 'set auto-load no'.
gdb-gdb-add-index-script.patch | 2 +-
gdb.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gdb-gdb-add-index-script.patch b/gdb-gdb-add-index-script.patch
index 81c197c..d63077c 100644
--- a/gdb-gdb-add-index-script.patch
+++ b/gdb-gdb-add-index-script.patch
@@ -169,7 +169,7 @@ Index: gdb-7.6.50.20130731-cvs/gdb/gdb-add-index
+dir="${file%/*}"
+
+# We don't care if gdb gives an error.
-+gdb -nx --batch-silent -ex "file $file" -ex "save gdb-index $dir"
++gdb -nx -iex 'set auto-load no' --batch-silent -ex "file $file" -ex "save gdb-index $dir"
+
+if test -f "${file}.gdb-index"; then
+ objcopy --add-section .gdb_index="${file}.gdb-index" --set-section-flags .gdb_index=readonly "$file" "$file"
diff --git a/gdb.spec b/gdb.spec
index b46c835..54ba871 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -38,7 +38,7 @@ Version: 7.6.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: 13%{?dist}
+Release: 14%{?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
@@ -1340,6 +1340,9 @@ fi
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
%changelog
+* Sun Nov 3 2013 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.6.50.20130731-14.fc20
+- Fix %{_bindir}gdb-add-index to also use -iex 'set auto-load no'.
+
* Wed Oct 30 2013 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.6.50.20130731-13.fc20
- [rhel5] Fix /etc/gdbinit compatibility with python-2.4.
More information about the scm-commits
mailing list