makedist.midori: Add debug helper to bin folder in debug builds

This commit is contained in:
Paweł Forysiuk 2012-08-13 19:58:54 +02:00 committed by Christian Dywan
parent 605953ebe6
commit 3fbcc93bac
1 changed files with 12 additions and 0 deletions

View File

@ -188,6 +188,18 @@ if [ "$DEBUG_BUILD" == "" ];then
pushd $workdir > /dev/null
find -iname *.debug -exec rm {} \;
popd > /dev/null
else
#add some gdb helper scripts
cat > $workdir/bin/backtrace.gdb << _EOF
set logging on
set logging file debug.log
run
thread apply all bt
quit
_EOF
echo 'gdb.exe --command=backtrace.gdb midori.exe' > $workdir/bin/debug.bat
fi
# copy locales for gtk