How to debug forked process
Sudhakar G
list.sudhakar@gmail.com
Thu Mar 22 08:17:00 GMT 2007
Hi,
I have a daemon which has no debug info. I want to follow the forked
child. I am using gdb (rpm version: gdb-6.6-12.4) 's command "set
follow-fork-mode child" but it is not working. Here is the output of
"uname -a":
Linux sudhakar 2.6.16.42-0.6-default #1 Mon Mar 5 16:54:49 UTC 2007
i686 i686 i386 GNU/Linux
Setting breakpoint for fork also does not break at fork.
Is there any way I can follow the forked child. This is critical for
my project and any help is apprciated.
Thanks
Sudhakar
More information about the Gdb
mailing list