This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to debug forked process


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]