From 87d509e4625df2d76a80f14cab3d420bd58ba20a Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 23 Jan 2023 00:19:30 +0100 Subject: Implement --debugger option to improve UX when debugging crashes (#13157) --- util/test_multiplayer.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'util') diff --git a/util/test_multiplayer.sh b/util/test_multiplayer.sh index 1fcf298e8..e3fc79353 100755 --- a/util/test_multiplayer.sh +++ b/util/test_multiplayer.sh @@ -19,10 +19,6 @@ waitfor () { exit 1 } -gdbrun () { - gdb -q -batch -ex 'set confirm off' -ex 'r' -ex 'bt' --args "$@" -} - [ -e "$minetest" ] || { echo "executable $minetest missing"; exit 1; } rm -rf "$worldpath" @@ -39,11 +35,11 @@ printf '%s\n' >"$testspath/server.conf" \ ln -s "$dir/helper_mod" "$worldpath/worldmods/" echo "Starting server" -gdbrun "$minetest" --server --config "$conf_server" --world "$worldpath" --gameid $gameid 2>&1 | sed -u 's/^/(server) /' & +"$minetest" --debugger --server --config "$conf_server" --world "$worldpath" --gameid $gameid 2>&1 | sed -u 's/^/(server) /' & waitfor "$worldpath/startup" echo "Starting client" -gdbrun "$minetest" --config "$conf_client1" --go --address 127.0.0.1 2>&1 | sed -u 's/^/(client) /' & +"$minetest" --debugger --config "$conf_client1" --go --address 127.0.0.1 2>&1 | sed -u 's/^/(client) /' & waitfor "$worldpath/done" echo "Waiting for client and server to exit" -- cgit v1.2.3