It can be real frustrating to debug a process with gdb only to have it fork and the child fails. You get left with a process that doesn’t matter. Solving this problem is very easy, you just need to “follow the child”:
set follow-fork-mode child
It can be real frustrating to debug a process with gdb only to have it fork and the child fails. You get left with a process that doesn’t matter. Solving this problem is very easy, you just need to “follow the child”:
set follow-fork-mode child