通过gdb连接到远程gdbserver时出错

问题描述 投票:1回答:1

我有一个运行-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)的后面

主机

  • OS:osx
  • gdb版本:8.0.1(与--with-all-targets一起安装)

容器

  • OS:ubuntu 14.04
  • gdb版本:7.7.1

任何帮助将不胜感激。

c++ docker gdb fastcgi gdbserver
1个回答
0
投票

我遇到同样的问题,当我运行我的qemu时,我想将gdb与qemu内部gdbserver连接。我做以下工作:

© www.soinside.com 2019 - 2024. All rights reserved.