RE: Debugging software including background processes
"Breazeal, Don" <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <DA279C53C4A5884A907135DFCD7A059A37DCF198@NA-MBX-04.mgc.mentorg.com> |
> -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of SF Markus Elfring > Sent: Tuesday, July 28, 2015 1:51 PM > To: [email protected] > Subject: Debugging software including background processes > > Hello, > > I would like to debug specific software occasionally which uses also > background processes (on my openSUSE Tumbleweed system). > > * Can the tool "gdb 7.9-3.1" be configured to start detailed debugging > if another background process will be started? > > * How can a corresponding backtrace be collected and analysed if a > subprocess > might have failed by a segmentation fault for example? Markus, The GDB manual's sections on debugging forks(https://sourceware.org/gdb/onlinedocs/gdb/Forks.html) and on debugging multiple programs (https://sourceware.org/gdb/onlinedocs/gdb/Inferiors-and-Programs.html#Inferiors-and-Programs) should help with this. The Linux core(5) man page has information on naming core files that might also help. --Don