Ticket #836: mythdocsgdbrealtime2.diff
File mythdocsgdbrealtime2.diff, 2.6 KB (added by , 18 years ago) |
---|
-
docs/mythtv-HOWTO.sgml
5225 5225 </verb></tscreen> 5226 5226 5227 5227 At 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.5228 the problem you're having is in the <tt>mythtv-setup</tt> program. 5229 5229 <tscreen><verb> 5230 $ cd setup 5231 $ gdb ./mythtv-setup 5230 $ gdb mythtv-setup 5232 5231 5233 5232 GNU gdb 5.3-1mdk (Mandrake Linux) 5234 5233 Copyright 2002 Free Software Foundation, Inc. … … 5238 5237 Type "show copying" to see the conditions. 5239 5238 There is absolutely no warranty for GDB. Type "show warranty" for details. 5240 5239 This GDB was configured as "i586-mandrake-linux-gnu"... 5240 (gdb) 5241 </tscreen><verb> 5242 At this point, you are at a GDB prompt which is waiting for input. <bf>gdb</bf> 5243 has many commands that are available for debugging which are not covered here. 5244 For more in-depth information, read the <tt>man</tt> page. 5245 5246 At the prompt type 5247 <tscreen><verb> 5248 (gdb) handle SIG33 nostop 5249 Signal Stop Print Pass to program Description 5250 SIG33 No Yes Yes Real-time event 33 5241 5251 (gdb) handle SIGPIPE nostop 5242 5252 Signal Stop Print Pass to program Description 5243 5253 SIGPIPE No Yes Yes Broken pipe … … 5246 5256 (gdb) 5247 5257 </verb></tscreen> 5248 5258 5249 <bf>gdb</bf> has a number of options, read the <tt>man</tt> page for more 5250 information. 5259 This sets up the debugging environment so that real-time signals do not stop the 5260 debugging session. 5251 5261 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 5262 This is only strictly necessary with Mythfrontend real-time 5263 priority option enabled, however it has no effect and does no harm with other 5264 debugging. Broken pipes are also not processed, since some Myth components 5265 require this signal to complete their error handling, rather than terminating 5266 the program. 5267 5268 Logging is also enabled, to gdb.txt in the current directory. 5269 5270 Now, type <tt>run</tt> to start program execution. When the program segfaults 5271 or appears to lock-up (press CTRL-C), type 5255 5272 <tscreen><verb> 5256 5273 (gdb) thread apply all bt full 5257 5274 (gdb) set logging off 5258 5275 </verb></tscreen> 5259 5276 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 5264 5277 All of the output from <tt>gdb.txt</tt> should be posted to the mythtv-dev 5265 5278 mailing list, along with the steps you followed to get the program to crash. 5266 5279