Skip to content

Commit

Permalink
common: prepend to the original gdb cmdline instead of replacing it
Browse files Browse the repository at this point in the history
So we always get pretty stack traces.
  • Loading branch information
mrc0mmand committed Oct 19, 2023
1 parent 0d7f7aa commit 32ef4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,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"
gdb_cmd="file $exe\nthread apply all bt\n$gdb_cmd"
_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 32ef4d1

Please sign in to comment.