[rhel5] Fix /etc/gdbinit compatibility with python-2.4.
This commit is contained in:
parent
d0d7de4406
commit
de5da8561d
7
gdb.spec
7
gdb.spec
|
@ -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: 42%{?dist}
|
||||
Release: 43%{?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,7 +1447,10 @@ fi
|
|||
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
|
||||
|
||||
%changelog
|
||||
* Mon Sep 30 2013 Sergio Durigan Junior <sergiodj@redhat.com> - 7.6.1-41.fc19
|
||||
* Wed Oct 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.1-43.fc19
|
||||
- [rhel5] Fix /etc/gdbinit compatibility with python-2.4.
|
||||
|
||||
* Mon Sep 30 2013 Sergio Durigan Junior <sergiodj@redhat.com> - 7.6.1-42.fc19
|
||||
- Fix the case when GDB leaks memory because value_struct_elt does not call
|
||||
check_typedef. (Doug Evans, BZ 15695, filed as RH BZ 1013453).
|
||||
|
||||
|
|
5
gdbinit
5
gdbinit
|
@ -1,8 +1,9 @@
|
|||
# System-wide GDB initialization file.
|
||||
python
|
||||
import glob
|
||||
for f in glob.iglob('%{_sysconfdir}/gdbinit.d/*.gdb'):
|
||||
# glob.iglob is not available in python-2.4 (RHEL-5).
|
||||
for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.gdb'):
|
||||
gdb.execute('source %s' % f)
|
||||
for f in glob.iglob('%{_sysconfdir}/gdbinit.d/*.py'):
|
||||
for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.py'):
|
||||
gdb.execute('source %s' % f)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue