Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520).

This commit is contained in:
Jan Kratochvil 2013-08-30 22:37:39 +02:00
parent a97ee30c3d
commit bdf0f25112
2 changed files with 11 additions and 4 deletions

View File

@ -38,7 +38,7 @@ Version: 7.6.50.%{snap}
# The release always contains a leading reserved number, start it at 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. # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
Release: 8%{?dist} Release: 9%{?dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
Group: Development/Debuggers Group: Development/Debuggers
@ -1333,6 +1333,9 @@ fi
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch" %endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
%changelog %changelog
* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.50.20130731-9.fc20
- Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520).
* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.50.20130731-8.fc20 * Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.50.20130731-8.fc20
- New %%pre to fix failed upgrade of the previous commit (BZ 999645). - New %%pre to fix failed upgrade of the previous commit (BZ 999645).
- Fix false warnings of new %%pre during future upgrades (BZ 999645). - Fix false warnings of new %%pre during future upgrades (BZ 999645).

10
gdbinit
View File

@ -1,4 +1,8 @@
# System-wide GDB initialization file. # System-wide GDB initialization file.
python
# FIXME: provide a wildcard. import glob
source %{_sysconfdir}/gdbinit.d/gdb-heap.py for f in glob.iglob('%{_sysconfdir}/gdbinit.d/*.gdb'):
gdb.execute('source %s' % f)
for f in glob.iglob('%{_sysconfdir}/gdbinit.d/*.py'):
gdb.execute('source %s' % f)
end