Skip to content

Commit

Permalink
Print build commit on gdb crash
Browse files Browse the repository at this point in the history
closed #59
  • Loading branch information
ChillerDragon committed Sep 30, 2023
1 parent c69cfad commit 451694b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ cache_logpath "$logfile"
# TODO: make this a gdb options config or use a gdbrc file and also include that in loop_gdb
run_cmd="$CFG_ENV_RUNTIME gdb -ex='handle SIGPIPE nostop noprint pass' -ex=run --args ./\"$CFG_BIN\" \"exec autoexec.cfg;logfile $logfile;#sid:$SERVER_UUID\""
log "$run_cmd"
launch_commit="$(get_commit)"
eval "$run_cmd"

log "commit: $launch_commit"

0 comments on commit 451694b

Please sign in to comment.