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