keiths / rpms / gdb

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