diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 22:26:18 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 22:26:18 +0000 |
commit | 94eb487064f37fa7bd5bcfd9c2faf8d275ad3725 (patch) | |
tree | e6ff16701d0d6d70268ec4ab11adf90ae3595683 /.inspircd.inc | |
parent | 329a7ed8586ebd8c6f67e21f524305ac7438e4a3 (diff) |
Give a full path to .gdbargs, should let you run the ./inspircd script from outside the install dir (from this point of view, anyway
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4755 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to '.inspircd.inc')
-rw-r--r-- | .inspircd.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.inspircd.inc b/.inspircd.inc index ed22f7317..5ac7e84ec 100644 --- a/.inspircd.inc +++ b/.inspircd.inc @@ -15,6 +15,7 @@ # I HATE PERL.. kthxbye # --------------------------------------------------- +my $basepath = "@BASE_DIR@"; my $confpath = "@CONFIG_DIR@/"; my $binpath = "@BINARY_DIR@"; my $libpath = "@LIBRARY_DIR@"; @@ -99,7 +100,7 @@ sub debug { checkgdb(); # If we are still alive here.. Try starting the IRCd.. - system("gdb --command=.gdbargs --args $binpath/$executable -nofork -debug -nolog"); + system("gdb --command=$basepath/.gdbargs --args $binpath/$executable -nofork -debug -nolog"); } sub screendebug @@ -114,7 +115,7 @@ sub screendebug # If we are still alive here.. Try starting the IRCd.. print "Starting InspIRCd in `screen`, type `screen -r` when the ircd crashes to view the gdb output and get a backtrace.\n"; print "Once you're inside the screen session press ^C + d to re-detach from the session\n"; - system("screen -m -d gdb --command=.gdbargs --args $binpath/$executable -nofork -debug -nolog"); + system("screen -m -d gdb --command=$basepath/.gdbargs --args $binpath/$executable -nofork -debug -nolog"); } sub valdebug |