summaryrefslogtreecommitdiff
path: root/gdbinit
diff options
context:
space:
mode:
Diffstat (limited to 'gdbinit')
-rw-r--r--gdbinit9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdbinit b/gdbinit
new file mode 100644
index 0000000..b59fb0d
--- /dev/null
+++ b/gdbinit
@@ -0,0 +1,9 @@
+# System-wide GDB initialization file.
+python
+import glob
+# glob.iglob is not available in python-2.4 (RHEL-5).
+for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.gdb'):
+ gdb.execute('source %s' % f)
+for f in glob.glob('%{_sysconfdir}/gdbinit.d/*.py'):
+ gdb.execute('source %s' % f)
+end