[Libreoffice-commits] core.git: solenv/bin

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 23 16:59:10 UTC 2019


 solenv/bin/gdb-core-bt.sh |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4a1c89e028f855999bab0c1bcc4c61a56e087852
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Oct 23 15:52:59 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Oct 23 18:57:56 2019 +0200

    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 at redhat.com>

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


More information about the Libreoffice-commits mailing list