gdbserver follow child

南笙酒味 提交于 2019-12-08 09:54:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!