You are not logged in.

#1 2009-10-29 11:38:23

allemensen
Member
Registered: 2009-04-06
Posts: 10

Gdb 7 follow both child and parent

Hello,

I was trying to use the new feature of gdb 7: following both processes after a fork. However, it doesn't work.

I use the following options in gdb:
set detach-on-fork off (to follow both child and parent)
set print inferior-events

When I start the program it hangs in waitpid. The inferior events show that the process forks and starts, but nothing is done after that.

The program can be found here: http://www.codecup.nl/download_caia.php
It is for a competition, so I don't have the source. I'd just like to run competition on my machine in gdb such that anytime my program segfaults, I'm right in the middle of the program.

Offline

Board footer

Powered by FluxBB