summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gdbargs2
-rw-r--r--.inspircd.inc2
2 files changed, 3 insertions, 1 deletions
diff --git a/.gdbargs b/.gdbargs
new file mode 100644
index 000000000..4ebefe1a0
--- /dev/null
+++ b/.gdbargs
@@ -0,0 +1,2 @@
+handle SIGPIPE pass nostop noprint
+run
diff --git a/.inspircd.inc b/.inspircd.inc
index 8b4aad32a..cca512a97 100644
--- a/.inspircd.inc
+++ b/.inspircd.inc
@@ -91,7 +91,7 @@ sub debug {
# Check to see its not 'running' already.
if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
# If we are still alive here.. Try starting the IRCd..
- system("gdb --eval-command=\"handle SIGPIPE pass nostop noprint\" --eval-command=\"run\" --args $binpath/$executable -nofork -debug");
+ system("gdb --command=.gdbargs --args $binpath/$executable -nofork -debug");
}