问题
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:
Does the forking process fork more than once? If not, you can use the --attach option to attach to the child.
来源:https://stackoverflow.com/questions/4717204/gdbserver-follow-child