source: subversion/applications/editors/merkaartor/windows/merkaartor.cmd @ 13936

Last change on this file since 13936 was 13936, checked in by Chris Browet, 11 years ago

ADD : WIX files for debug version

File size: 1.6 KB
Line 
1@Echo off
2::
3:: Script to run merkaartor through gdb (easily?)
4::   (Original from the MythTV project)
5::
6Echo COMMENTS: --------------------------------------
7Echo COMMENTS: This script is used for gathering backtraces using gdb
8Echo COMMENTS: --------------------------------------
9Echo.
10::
11:gdbcommands
12::
13:: Check for and Create if needed the .\gdbcommands.txt
14::
15if not exist ./gdbcommands.txt (
16    echo handle SIGPIPE nostop noprint > .\gdbcommands.txt
17    echo handle SIG33   nostop noprint >> .\gdbcommands.txt
18    echo set logging on     >> .\gdbcommands.txt
19    echo set pagination off >> .\gdbcommands.txt
20::    echo set args -l myth.log --noupnp --nosched --nojobqueue --nohousekeeper --noautoexpire -v all >> .\gdbcommands.txt
21    echo run >> .\gdbcommands.txt
22    echo thread apply all bt full >> .\gdbcommands.txt
23    echo set logging off >> .\gdbcommands.txt )
24@Echo off
25
26Echo COMMENTS: --------------------------------------
27Echo COMMENTS: Clearing old gdb.txt before running gdb again.
28Echo COMMENTS: --------------------------------------
29Echo.
30::
31:: add current data/time to gdb.txt
32:: will this be a bad idea? who knows? =)
33::
34date /t > .\gdb.txt
35time /t >> .\gdb.txt
36
37:gdb
38::
39:: gdb should be in the path.
40::
41Echo COMMENTS: --------------------------------------
42Echo COMMENTS: If you need to add any switches to merkaartor edit gdbcommands.txt
43Echo COMMENTS: --------------------------------------
44Echo.
45Echo COMMENTS: --------------------------------------
46Echo COMMENTS: Starting: gdb
47Echo COMMENTS: --------------------------------------
48gdb .\merkaartor.exe -batch -q -x .\gdbcommands.txt
49
50Echo.
51Echo The backtrace can be found in .\gdb.txt
52Echo.
53pause
Note: See TracBrowser for help on using the repository browser.