]> spindle.queued.net Git - midori/commitdiff
makedist.midori: Add debug helper to bin folder in debug builds
authorPaweł Forysiuk <tuxator@o2.pl>
Mon, 13 Aug 2012 17:58:54 +0000 (19:58 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 13 Aug 2012 22:38:04 +0000 (00:38 +0200)
win32/makedist/makedist.midori

index c83ec0bdd610b7f8efb5b8c69dd12e361e41d368..04fd7206ce149c8d41c74844a99a2cbfc352f3db 100755 (executable)
@@ -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