gdbserver 跟随孩子 [英] gdbserver follow child

查看:60
本文介绍了gdbserver 跟随孩子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试调试远程主机上的派生进程,但是每次gdbserver进程都因子退出而在我身上终止.

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

试图在.gdbinit中设置设置跟随叉模式子对象",无济于事.

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

这有一个好的解决方案吗?

Is there a good solution for this one?

谢谢.

推荐答案

分叉过程是否分叉多次?如果没有,则可以使用--attach选项将其附加到子项.

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

这篇关于gdbserver 跟随孩子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆