Fix %{_bindir}gdb-add-index to also use -iex 'set auto-load no'.

This commit is contained in:
Jan Kratochvil 2013-11-03 16:06:52 +01:00
parent de5da8561d
commit 1081c433bd
2 changed files with 5 additions and 2 deletions

View File

@ -169,7 +169,7 @@ Index: gdb-7.5.91.20130407/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"

View File

@ -37,7 +37,7 @@ Version: 7.6.1
# 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: 43%{?dist}
Release: 44%{?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
@ -1447,6 +1447,9 @@ fi
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
%changelog
* Sun Nov 3 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.1-44.fc19
- Fix %{_bindir}gdb-add-index to also use -iex 'set auto-load no'.
* Wed Oct 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.1-43.fc19
- [rhel5] Fix /etc/gdbinit compatibility with python-2.4.