strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed typo
[strongswan.git]
/
src
/
charon
/
debug
diff --git
a/src/charon/debug
b/src/charon/debug
index
0a246ba
..
5aef922
100755
(executable)
--- a/
src/charon/debug
+++ b/
src/charon/debug
@@
-1,6
+1,12
@@
#!/bin/bash
#!/bin/bash
-make install || exit
-ipsec start --nofork &
+CMD=`tempfile`
+LOG="debug.log"
+ipsec start --nofork 2>&1 > $LOG &
sleep 1
sleep 1
-gdb /usr/local/libexec/ipsec/charon `cat /var/run/charon.pid`
+echo >> $LOG
+echo >> $LOG
+echo >> $LOG
+echo "c" > $CMD
+gdb -batch /usr/local/libexec/ipsec/charon `cat /var/run/charon.pid ` -x $CMD 2>&1 >> $LOG
ipsec stop
ipsec stop
+rm $CMD