From: Paweł Forysiuk Date: Mon, 13 Aug 2012 17:58:54 +0000 (+0200) Subject: makedist.midori: Add debug helper to bin folder in debug builds X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fbcc93bac6fa9c9a5244ac4527b6db1964ccc44;p=midori makedist.midori: Add debug helper to bin folder in debug builds --- diff --git a/win32/makedist/makedist.midori b/win32/makedist/makedist.midori index c83ec0bd..04fd7206 100755 --- a/win32/makedist/makedist.midori +++ b/win32/makedist/makedist.midori @@ -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