Commit 16a7ab75 authored by Carsten Schoenert's avatar Carsten Schoenert
Browse files

/u/l/thunderbird: Correct escape sequencing for gdb calling

We need to escape the arguments for the -ex option while calling gdb.

Closes: #976979
parent 82a85e2a
......@@ -36,7 +36,7 @@ MOZ_APP_LAUNCHER=$(which "$0")
MOZ_LIBDIR=/usr/lib/${MOZ_APP_NAME}
ID_PROFILE_FOLDER=${HOME}/.icedove
TB_PROFILE_FOLDER=${HOME}/.thunderbird
TB_GDB_DEFAULT_OPTS=${TB_GDB_DEFAULT_OPTS:-"-ex handle SIG38 nostop -ex handle SIGPIPE nostop"}
TB_GDB_DEFAULT_OPTS=${TB_GDB_DEFAULT_OPTS:-"-ex \"handle SIG38 nostop\" -ex \"handle SIGPIPE nostop\""}
export HELP=0
export FAIL=0
......@@ -248,10 +248,13 @@ else
if [ -f /usr/bin/gdb ]; then
if dpkg-query -W -f='${Version}' thunderbird-dbgsym &>/dev/null ; then
output_info "Starting Thunderbird with GDB ..."
output_info "LANG= /usr/bin/gdb ${TB_GDB_DEFAULT_OPTS} -ex run ${MOZ_LIBDIR}/${MOZ_APP_NAME} ${TB_ARGS[@]}"
LANG='' exec "/usr/bin/gdb ${TB_GDB_DEFAULT_OPTS} -ex run ${MOZ_LIBDIR}/${MOZ_APP_NAME} ${TB_ARGS[@]}"
output_info "LANG= /usr/bin/gdb ${TB_GDB_DEFAULT_OPTS} -ex \"run\" ${MOZ_LIBDIR}/${MOZ_APP_NAME} ${TB_ARGS[@]}"
LANG='' exec "/usr/bin/gdb ${TB_GDB_DEFAULT_OPTS} -ex \"run\" ${MOZ_LIBDIR}/${MOZ_APP_NAME} ${TB_ARGS[@]}"
else
output_info "No package 'thunderbird-dbgsym' installed! Please install first and restart."
output_info "More information how to adjust your sources.list to being able installing"
output_info "dbgsym packages in generally can be found here:"
output_info "https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols"
exit 1
fi
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment