[Xfce4-commits] <midori:master> makedist.midori: Add debug helper to bin folder in debug builds

Christian Dywan noreply at xfce.org
Tue Aug 14 00:40:01 CEST 2012


Updating branch refs/heads/master
         to 3fbcc93bac6fa9c9a5244ac4527b6db1964ccc44 (commit)
       from 605953ebe64a920660ae2139c5b8ca8f8cf4f220 (commit)

commit 3fbcc93bac6fa9c9a5244ac4527b6db1964ccc44
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Mon Aug 13 19:58:54 2012 +0200

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

 win32/makedist/makedist.midori |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/win32/makedist/makedist.midori b/win32/makedist/makedist.midori
index c83ec0b..04fd720 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


More information about the Xfce4-commits mailing list