From 3fbcc93bac6fa9c9a5244ac4527b6db1964ccc44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Mon, 13 Aug 2012 19:58:54 +0200 Subject: [PATCH] makedist.midori: Add debug helper to bin folder in debug builds --- win32/makedist/makedist.midori | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.39.5