summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-23 15:52:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-23 18:57:56 +0200
commit4a1c89e028f855999bab0c1bcc4c61a56e087852 (patch)
treeff5a36aaa3fdf4a42e64efb927f78ebef56e50f7 /solenv/bin
parentd63e57798c669878b2fd5d2536ebad9d237183ea (diff)
Enable our gdb pretty-printers when printing backtraces
(-iex aka --init-eval-command appears to be supported by gdb since <https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit; h=8320cc4fa3784dc5296745898de5357559f8125a> in 2012, so it is probably safe to assume it is generally available) Change-Id: I65134d62ecd509ab39fa42f3cddbef40b74ab9d0 Reviewed-on: https://gerrit.libreoffice.org/81393 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'solenv/bin')
-rwxr-xr-xsolenv/bin/gdb-core-bt.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/solenv/bin/gdb-core-bt.sh b/solenv/bin/gdb-core-bt.sh
index 45b612128e6f..2216e2aba5e5 100755
--- a/solenv/bin/gdb-core-bt.sh
+++ b/solenv/bin/gdb-core-bt.sh
@@ -29,7 +29,8 @@ then
guess=${guess#* execfn: \'}
guess=${guess%%\'*}
if [ ! -x "$guess" ]; then guess=$EXECUTABLE; fi
- gdb -x "$GDBCOMMANDFILE" --batch "$guess" "$COREFILE" && found=x
+ gdb -iex "add-auto-load-safe-path ${INSTDIR?}" -x "$GDBCOMMANDFILE" --batch "$guess" \
+ "$COREFILE" && found=x
rm "$GDBCOMMANDFILE"
echo
fi