a56307e
# System-wide GDB initialization file.
bdf0f25
python
bdf0f25
import glob
25caf28
# glob.iglob is not available in python-2.4 (RHEL-5).
25caf28
for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.gdb'):
bdf0f25
  gdb.execute('source %s' % f)
25caf28
for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.py'):
bdf0f25
  gdb.execute('source %s' % f)
bdf0f25
end