5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-09 16:00:27 +00:00

Add an option to run mappers inside gdb

This commit is contained in:
Vanhala Antti 2014-03-31 15:09:07 +03:00
parent 6464d3dd0c
commit 1ed805a7e6

View File

@ -22,5 +22,9 @@ do
# Disable tun interface
sed -i 's/"type": "TUNInterface"/\/\/"type": "TUNInterface"/g' $file
if [[ $* == *-d* ]]; then
gdb $cjdns_path/cjdroute -ex 'set follow-fork-mode child' -ex 'run < '"${file}" -ex 'thread apply all bt' -ex 'quit' 2>&1 | tee gdb-$i.log &
else
$cjdns_path/cjdroute < $file
fi
done