3

I'm trying to debug my application written in C with Eclipse. There are two fork() calls there so I need to debug 3 processes simultaniously. I checked "Automatically debug forked processes" in the project debug configuration window and tried to debug, but Eclipse doesn't allow me to switch between debugging contexts of different processes. The breakpoints I have installed for child processes don't hit. I also tried debug with "Non-stop mode", but it fails with segmentation fault just after start. What do I do wrong? Thanks.

2
  • You don't debug with Eclipse. You debug with gdb (which you might start in Eclipse). So read the documentation of gdb Apr 5, 2014 at 11:52
  • @Basile, sure. The reason I ask this question here is exectly because gdb docs did not clarify anything. Apr 5, 2014 at 12:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.