Ticket #6792: win32-simultaneous-gdb.patch
File win32-simultaneous-gdb.patch, 5.0 KB (added by , 15 years ago) |
---|
-
Win32/debug/mythbackend.cmd
13 13 :: 14 14 :gdbcommands 15 15 :: 16 :: Check for and Create if needed the .\gdbcommands .txt16 :: Check for and Create if needed the .\gdbcommands-backend.txt 17 17 :: 18 18 :: syntax taken from [ http://www.mythtv.org/docs/mythtv-HOWTO.html#toc22.2 ] 19 19 :: 20 if not exist ./gdbcommands.txt ( 21 echo handle SIGPIPE nostop noprint > .\gdbcommands.txt 22 echo handle SIG33 nostop noprint >> .\gdbcommands.txt 23 echo set logging on >> .\gdbcommands.txt 24 echo set pagination off >> .\gdbcommands.txt 25 echo set args -l myth.log --noupnp --nosched --nojobqueue --nohousekeeper --noautoexpire -v all >> .\gdbcommands.txt 26 echo run >> .\gdbcommands.txt 27 echo thread apply all bt full >> .\gdbcommands.txt 28 echo set logging off >> .\gdbcommands.txt ) 20 if not exist ./gdbcommands-backend.txt ( 21 echo handle SIGPIPE nostop noprint > .\gdbcommands-backend.txt 22 echo handle SIG33 nostop noprint >> .\gdbcommands-backend.txt 23 echo set logging on >> .\gdbcommands-backend.txt 24 echo set pagination off >> .\gdbcommands-backend.txt 25 REM echo set args -l myth.log --noupnp --nosched --nojobqueue --nohousekeeper --noautoexpire -v all >> .\gdbcommands.txt 26 echo set args -l mythtv-backend.log -v all >> .\gdbcommands-backend.txt 27 echo run >> .\gdbcommands-backend.txt 28 echo thread apply all bt full >> .\gdbcommands-backend.txt 29 echo set logging off >> .\gdbcommands-backend.txt ) 29 30 @Echo off 30 31 31 32 Echo COMMENTS: -------------------------------------- 32 Echo COMMENTS: Clearing old gdb .txt before running gdb again.33 Echo COMMENTS: Clearing old gdb-backend.txt before running gdb again. 33 34 Echo COMMENTS: -------------------------------------- 34 35 Echo. 35 36 :: 36 37 :: add current data/time to gdb.txt 37 38 :: will this be a bad idea? who knows? =) 38 39 :: 39 date /t > .\gdb .txt40 time /t >> .\gdb .txt40 date /t > .\gdb-backend.txt 41 time /t >> .\gdb-backend.txt 41 42 42 43 :gdb 43 44 :: 44 45 :: gdb should be in the path. 45 46 :: 46 47 Echo COMMENTS: -------------------------------------- 47 Echo COMMENTS: If you need to add any switches to mythbackend edit gdbcommands .txt48 Echo COMMENTS: If you need to add any switches to mythbackend edit gdbcommands-backend.txt 48 49 Echo COMMENTS: see: "mythbackend.exe --help" for options 49 50 Echo COMMENTS: -------------------------------------- 50 51 Echo. 51 52 Echo COMMENTS: -------------------------------------- 52 53 Echo COMMENTS: Starting: gdb 53 54 Echo COMMENTS: -------------------------------------- 54 gdb .\mythbackend.exe -x .\gdbcommands .txt55 gdb .\mythbackend.exe -x .\gdbcommands-backend.txt 55 56 56 57 Echo. 57 Echo The backtrace can be found in .\gdb .txt58 Echo The backtrace can be found in .\gdb-backend.txt 58 59 Echo. -
Win32/debug/mythfrontend.cmd
13 13 :: 14 14 :gdbcommands 15 15 :: 16 :: Check for and Create if needed the .\gdbcommands .txt16 :: Check for and Create if needed the .\gdbcommands-frontend.txt 17 17 :: 18 18 :: syntax taken from [ http://www.mythtv.org/docs/mythtv-HOWTO.html#toc22.2 ] 19 19 :: 20 if not exist ./gdbcommands .txt (21 echo handle SIGPIPE nostop noprint > .\gdbcommands .txt22 echo handle SIG33 nostop noprint >> .\gdbcommands .txt23 echo set logging on >> .\gdbcommands .txt24 echo set pagination off >> .\gdbcommands .txt25 echo set args -l myth .log -d -v all >> .\gdbcommands.txt26 echo run >> .\gdbcommands .txt27 echo thread apply all bt full >> .\gdbcommands .txt28 echo set logging off >> .\gdbcommands .txt )20 if not exist ./gdbcommands-frontend.txt ( 21 echo handle SIGPIPE nostop noprint > .\gdbcommands-frontend.txt 22 echo handle SIG33 nostop noprint >> .\gdbcommands-frontend.txt 23 echo set logging on >> .\gdbcommands-frontend.txt 24 echo set pagination off >> .\gdbcommands-frontend.txt 25 echo set args -l mythtv-frontend.log -d -v all >> .\gdbcommands-frontend.txt 26 echo run >> .\gdbcommands-frontend.txt 27 echo thread apply all bt full >> .\gdbcommands-frontend.txt 28 echo set logging off >> .\gdbcommands-frontend.txt ) 29 29 @Echo off 30 30 31 31 Echo COMMENTS: -------------------------------------- … … 44 44 :: gdb should be in the path. 45 45 :: 46 46 Echo COMMENTS: -------------------------------------- 47 Echo COMMENTS: If you need to add any switches to mythfrontend edit gdbcommands .txt47 Echo COMMENTS: If you need to add any switches to mythfrontend edit gdbcommands-frontend.txt 48 48 Echo COMMENTS: see: "mythfrontend.exe --help" for options 49 49 Echo COMMENTS: -------------------------------------- 50 50 Echo. 51 51 Echo COMMENTS: -------------------------------------- 52 52 Echo COMMENTS: Starting: gdb 53 53 Echo COMMENTS: -------------------------------------- 54 gdb .\mythfrontend.exe -x .\gdbcommands .txt54 gdb .\mythfrontend.exe -x .\gdbcommands-frontend.txt 55 55 Echo. 56 56 Echo The backtrace can be found in .\gdb.txt 57 57 Echo.