2010-12-27 04:50:41 +00:00
|
|
|
# System-wide GDB initialization file.
|
2013-08-30 20:37:39 +00:00
|
|
|
python
|
|
|
|
import glob
|
2013-10-30 11:49:53 +00:00
|
|
|
# glob.iglob is not available in python-2.4 (RHEL-5).
|
|
|
|
for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.gdb'):
|
2013-08-30 20:37:39 +00:00
|
|
|
gdb.execute('source %s' % f)
|
2013-10-30 11:49:53 +00:00
|
|
|
for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.py'):
|
2013-08-30 20:37:39 +00:00
|
|
|
gdb.execute('source %s' % f)
|
|
|
|
end
|