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