Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520).
This commit is contained in:
parent
9823d71e51
commit
827765168c
5
gdb.spec
5
gdb.spec
|
@ -36,7 +36,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: 38%{?dist}
|
||||
Release: 39%{?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
|
||||
|
@ -1433,6 +1433,9 @@ fi
|
|||
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
|
||||
|
||||
%changelog
|
||||
* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.1-39.fc19
|
||||
- Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520).
|
||||
|
||||
* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.1-38.fc19
|
||||
- Rebase to FSF GDB 7.6.1.
|
||||
|
||||
|
|
10
gdbinit
10
gdbinit
|
@ -1,4 +1,8 @@
|
|||
# System-wide GDB initialization file.
|
||||
|
||||
# FIXME: provide a wildcard.
|
||||
source %{_sysconfdir}/gdbinit.d/gdb-heap.py
|
||||
python
|
||||
import glob
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue