5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-09-19 16:09:34 +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 # Disable tun interface
sed -i 's/"type": "TUNInterface"/\/\/"type": "TUNInterface"/g' $file sed -i 's/"type": "TUNInterface"/\/\/"type": "TUNInterface"/g' $file
$cjdns_path/cjdroute < $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 done