windows: automatically log gdb output
authorRobin Gareus <robin@gareus.org>
Tue, 30 Dec 2014 11:28:46 +0000 (12:28 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 30 Dec 2014 11:28:46 +0000 (12:28 +0100)
tools/x-win/package.sh

index 06ce65ad8c0ff0046d833be6458b265110002a36..9340158595ba18d7fca96b20f594ef122eb0a1e7 100755 (executable)
@@ -162,7 +162,7 @@ if ! grep " using ./waf configure" build/config.log | grep -q -- "--optimize"; t
        cp -r ${SRCDIR}/gdb_$WARCH $DESTDIR/gdb
        cat > $DESTDIR/ardbg.bat << EOF
 cd bin
-START ..\\gdb\\bin\\gdb.exe ardour.exe
+START ..\\gdb\\bin\\gdb.exe -iex "set logging overwrite on" -iex "set height 0" -iex "set logging on %UserProfile%\\ardour-debug.log" ardour.exe
 EOF
        OUTFILE="${TMPDIR}/ardour-${ARDOURVERSION}-dbg-${WARCH}-Setup.exe"
        VERSIONINFO="Debug Version."