Ticket #836: mythdocsgdbrealtime2.diff

File mythdocsgdbrealtime2.diff, 2.6 KB (added by Dibblah, 18 years ago)
  • docs/mythtv-HOWTO.sgml

     
    52255225</verb></tscreen>
    52265226
    52275227At this point, you now have debug-enabled software ready.  Let's assume that
    5228 the problem you're having is in the <tt>setup</tt> program.
     5228the problem you're having is in the <tt>mythtv-setup</tt> program.
    52295229<tscreen><verb>
    5230 $ cd setup
    5231 $ gdb ./mythtv-setup
     5230$ gdb mythtv-setup
    52325231
    52335232GNU gdb 5.3-1mdk (Mandrake Linux)
    52345233Copyright 2002 Free Software Foundation, Inc.
     
    52385237Type "show copying" to see the conditions.
    52395238There is absolutely no warranty for GDB.  Type "show warranty" for details.
    52405239This GDB was configured as "i586-mandrake-linux-gnu"...
     5240(gdb)
     5241</tscreen><verb>
     5242At this point, you are at a GDB prompt which is waiting for input. <bf>gdb</bf>
     5243has many commands that are available for debugging which are not covered here.
     5244For more in-depth information, read the <tt>man</tt> page.
     5245
     5246At the prompt type
     5247<tscreen><verb>
     5248(gdb) handle SIG33 nostop
     5249Signal        Stop      Print   Pass to program Description
     5250SIG33         No        Yes     Yes             Real-time event 33
    52415251(gdb) handle SIGPIPE nostop
    52425252Signal        Stop      Print   Pass to program Description
    52435253SIGPIPE       No        Yes     Yes             Broken pipe
     
    52465256(gdb)
    52475257</verb></tscreen>
    52485258
    5249 <bf>gdb</bf> has a number of options, read the <tt>man</tt> page for more
    5250 information.
     5259This sets up the debugging environment so that real-time signals do not stop the
     5260debugging session.
    52515261
    5252 Once at the <tt>(gdb)</tt> prompt, type <tt>run</tt> to start program
    5253 execution.  When the program segfaults or appears to lock-up (press CTRL-C),
    5254 type
     5262This is only strictly necessary with Mythfrontend real-time
     5263priority option enabled, however it has no effect and does no harm with other
     5264debugging. Broken pipes are also not processed, since some Myth components
     5265require this signal to complete their error handling, rather than terminating
     5266the program.
     5267
     5268Logging is also enabled, to gdb.txt in the current directory.
     5269
     5270Now, type <tt>run</tt> to start program execution.  When the program segfaults
     5271or appears to lock-up (press CTRL-C), type
    52555272<tscreen><verb>
    52565273(gdb) thread apply all bt full
    52575274(gdb) set logging off
    52585275</verb></tscreen>
    52595276
    5260 If gdb returns to the gdb prompt with a "Program received signal SIG33,
    5261 Real-time event 33", type <tt>cont</tt> to continue; this is not a "real"
    5262 bug.
    5263 
    52645277All of the output from <tt>gdb.txt</tt> should be posted to the mythtv-dev
    52655278mailing list, along with the steps you followed to get the program to crash.
    52665279