Ticket #6792: win32-simultaneous-gdb.patch

File win32-simultaneous-gdb.patch, 5.0 KB (added by Jonathan Martens <jonathan@…>, 15 years ago)
  • Win32/debug/mythbackend.cmd

     
    1313::
    1414:gdbcommands
    1515::
    16 :: Check for and Create if needed the .\gdbcommands.txt
     16:: Check for and Create if needed the .\gdbcommands-backend.txt
    1717::
    1818:: syntax taken from [ http://www.mythtv.org/docs/mythtv-HOWTO.html#toc22.2 ]
    1919::
    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 )
     20if 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
     25REM    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 )
    2930@Echo off
    3031
    3132Echo COMMENTS: --------------------------------------
    32 Echo COMMENTS: Clearing old gdb.txt before running gdb again.
     33Echo COMMENTS: Clearing old gdb-backend.txt before running gdb again.
    3334Echo COMMENTS: --------------------------------------
    3435Echo.
    3536::
    3637:: add current data/time to gdb.txt
    3738:: will this be a bad idea? who knows? =)
    3839::
    39 date /t > .\gdb.txt
    40 time /t >> .\gdb.txt
     40date /t > .\gdb-backend.txt
     41time /t >> .\gdb-backend.txt
    4142
    4243:gdb
    4344::
    4445:: gdb should be in the path.
    4546::
    4647Echo COMMENTS: --------------------------------------
    47 Echo COMMENTS: If you need to add any switches to mythbackend edit gdbcommands.txt
     48Echo COMMENTS: If you need to add any switches to mythbackend edit gdbcommands-backend.txt
    4849Echo COMMENTS: see: "mythbackend.exe --help" for options
    4950Echo COMMENTS: --------------------------------------
    5051Echo.
    5152Echo COMMENTS: --------------------------------------
    5253Echo COMMENTS: Starting: gdb
    5354Echo COMMENTS: --------------------------------------
    54 gdb .\mythbackend.exe -x .\gdbcommands.txt
     55gdb .\mythbackend.exe -x .\gdbcommands-backend.txt
    5556
    5657Echo.
    57 Echo The backtrace can be found in .\gdb.txt
     58Echo The backtrace can be found in .\gdb-backend.txt
    5859Echo.
  • Win32/debug/mythfrontend.cmd

     
    1313::
    1414:gdbcommands
    1515::
    16 :: Check for and Create if needed the .\gdbcommands.txt
     16:: Check for and Create if needed the .\gdbcommands-frontend.txt
    1717::
    1818:: syntax taken from [ http://www.mythtv.org/docs/mythtv-HOWTO.html#toc22.2 ]
    1919::
    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 -d -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 )
     20if 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 )
    2929@Echo off
    3030
    3131Echo COMMENTS: --------------------------------------
     
    4444:: gdb should be in the path.
    4545::
    4646Echo COMMENTS: --------------------------------------
    47 Echo COMMENTS: If you need to add any switches to mythfrontend edit gdbcommands.txt
     47Echo COMMENTS: If you need to add any switches to mythfrontend edit gdbcommands-frontend.txt
    4848Echo COMMENTS: see: "mythfrontend.exe --help" for options
    4949Echo COMMENTS: --------------------------------------
    5050Echo.
    5151Echo COMMENTS: --------------------------------------
    5252Echo COMMENTS: Starting: gdb
    5353Echo COMMENTS: --------------------------------------
    54 gdb .\mythfrontend.exe -x .\gdbcommands.txt
     54gdb .\mythfrontend.exe -x .\gdbcommands-frontend.txt
    5555Echo.
    5656Echo The backtrace can be found in .\gdb.txt
    5757Echo.