From e3c4f7ee3be511cc3549573ed3436f6c03e183c6 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 2 Oct 2023 14:39:33 +0200 Subject: [PATCH] common: drop redundant 'quit' gdb quits automagically at EOF. --- common/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/utils.sh b/common/utils.sh index 5eb02486..49919d64 100644 --- a/common/utils.sh +++ b/common/utils.sh @@ -380,7 +380,7 @@ coredumpctl_collect() { # trace and other useful info while read -r path; do local exe - local gdb_cmd="bt full\nquit" + local gdb_cmd="bt full" _log "Collecting coredumps for '$path'" "$coredumpctl_bin" "${args[@]}" info "$path" @@ -395,7 +395,7 @@ coredumpctl_collect() { # $BUILD_DIR is set and we found the binary in it, let's override # the gdb command exe="$BUILD_DIR/${path##*/}" - gdb_cmd="file $exe\nthread apply all bt\nbt full\nquit" + gdb_cmd="file $exe\nthread apply all bt\nbt full" _log "\$BUILD_DIR is set and '${path##*/}' was found in it" _log "Overriding the executable to '$exe' and gdb command to '$gdb_cmd'" fi