Skip to content

Commit

Permalink
common: drop redundant 'quit'
Browse files Browse the repository at this point in the history
gdb quits automagically at EOF.
  • Loading branch information
mrc0mmand committed Oct 2, 2023
1 parent 0c17b85 commit e3c4f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit e3c4f7e

Please sign in to comment.