如何终止gdbserver? [英] How to terminate gdbserver?

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

问题描述

我正在尝试使用gdbserver进行调试。在终止主机上的gdb客户端之后,我发现gdbserver仍在监听:

 远程端已终止连接。 GDBserver将重新打开连接。 
监听端口5004

我试图用我在任何地方找到的所有东西退出gdbserver :退出,退出,q,监视器退出,Esc,Cnt + c ...没有任何杀死它。此外,当我打开另一个终端,并寻找进程运行gdbserver(命令ps,顶部)我找不到它...
我的问题是 - 如何终止gdbserver?



$ b $ 监视器退出

从您的主机gdb 中终止客户端。如果您已经终止了它,只需连接另一个。


I am trying to debug with gdbserver. after I terminat the gdb client on the host I see that the gdbserver is still listening :

Remote side has terminated connection.  GDBserver will reopen the connection.
Listening on port 5004

I tried to exit gdbserver with everything I have found anywhere no luck: quit,exit,q, monitor exit,Esc,Cnt+c... nothing kills it. Moreover, when I opened another terminal and looked for the process running gdbserver (with the commands ps,top) I couldn't find it there... my question is - How to terminate gdbserver ?

解决方案

Give command

monitor exit

from your host gdb before terminating the client. If you have already terminated it, just attach with another one.

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

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