0
votes

I'm trying to debug a forking process on remote host, but getting the gdbserver process end on me every time with child exit.

Tried to setting "set follow-fork-mode child" in .gdbinit, didn't help.

Is there a good solution for this one?

Thanks.

1
Have you tried setting that in an interactive GDB session? - Nikolai Fetissov
This is Eclipse-RSE based session, so it's only automated. - SyBer

1 Answers

1
votes

Does the forking process fork more than once? If not, you can use the --attach option to attach to the child.