我有一个运行-p 2000:2000的Docker容器,该容器在端口2000上运行一个gdbserver。
当尝试通过gdb从主机连接时,我得到以下信息:
(gdb) target remote localhost:2000
Remote debugging using localhost:2000
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Remote replied unexpectedly to 'vMustReplyEmpty': timeout
在docker容器中运行的应用程序是用C ++编写的,位于fcgi(gdbserver :2000 spawn-fcgi -p 8000 -n ./myBinary
)的后面
主机
容器
任何帮助将不胜感激。
我遇到同样的问题,当我运行我的qemu时,我想将gdb与qemu内部gdbserver连接。我做以下工作: