]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/debug.sh
Update meshgen threads to use queue waiting
[dragonblocks_alpha.git] / src / debug.sh
index 0f82ee743730248303554e77534b12390a2ed581..98d38c4abc20803c924ba6d7c6d2197260cb05f5 100755 (executable)
@@ -12,6 +12,7 @@ COMMON="set confirm off
 handle SIGTERM nostop print pass
 handle SIGPIPE nostop noprint pass
 set height 0
+set \$_exitcode=1
 define hook-stop
     if \$_exitcode == 0
         quit
@@ -20,17 +21,19 @@ end
 "
 
 echo "$COMMON
-run ::1 4000 < $DEBUG_DIR/name
+run \"[::1]:4000\" < $DEBUG_DIR/name
 " > $DEBUG_DIR/client_script
 
 echo "$COMMON
-run 4000
+set print thread-events off
+run \"[::1]:4000\"
 " > $DEBUG_DIR/server_script
 
-konsole -e bash -c "
+kitty --detach -e bash -c "
        echo \$\$ > $DEBUG_DIR/server_pid
        exec gdb --command $DEBUG_DIR/server_script ./DragonblocksServer
-" & sleep 0.5
+"
+sleep 0.5
 
 gdb --command $DEBUG_DIR/client_script ./Dragonblocks