Debugging software including background processes
Breazeal, Don
Don_Breazeal@mentor.com
Tue Jul 28 21:27:00 GMT 2015
> -----Original Message-----
> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
> Behalf Of SF Markus Elfring
> Sent: Tuesday, July 28, 2015 1:51 PM
> To: gdb@sourceware.org
> 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
More information about the Gdb
mailing list