使用gdbserver进行跨架构远程调试

使用gdbserver进行跨架构远程调试,gdb,mips,cross-compiling,gdbserver,Gdb,Mips,Cross Compiling,Gdbserver,我正在尝试远程调试交叉编译的Hello World程序 对于mipsel,但我在使用gdb/gdbserver时失败 我的目标架构是: Linux debian-mipsel 2.6.32-5-4kc-malta #1 Tue Sep 24 01:20:35 UTC 2013 mips GNU/Linux 该系统使用QEMU运行,可以成功地执行交叉编译 文件(例如…/bin/hello) 目前,gdb版本是8.1.1,gdbserver版本是7.8,但我试图改变 这两种方法都很有效,但仍然得到

我正在尝试远程调试交叉编译的Hello World程序 对于mipsel,但我在使用gdb/gdbserver时失败

我的目标架构是:

Linux debian-mipsel 2.6.32-5-4kc-malta #1 Tue Sep 24 01:20:35 UTC 2013 mips GNU/Linux
该系统使用QEMU运行,可以成功地执行交叉编译 文件(例如…/bin/hello)

目前,gdb版本是8.1.1,gdbserver版本是7.8,但我试图改变 这两种方法都很有效,但仍然得到相同的结果

注释

  • 进程被创建,gdb开始监听
  • 我可以用nc验证端口是否打开
gdbserver输出

new_argv[0] = "/bin/hello"
Process /bin/hello created; pid = 1385
>>>> entering linux_wait_1
linux_wait_1: [Process 1385]
my_waitpid (-1, 0x40000001)
my_waitpid (-1, 0x1): status(57f), 1385
LWFE: waitpid(-1, ...) returned 1385, ERRNO-OK
LLW: waitpid 1385 received Trace/breakpoint trap (stopped)
linux_low_filter_event: pc is 0x400190
pc is 0x400190
stop pc is 0x400190
my_waitpid (1386, 0x0)
my_waitpid (1386, 0x0): status(177f), 1386
my_waitpid (1386, 0x0)
(gdb) file hello
Reading symbols from hello...done.
(gdb) target remote 10.0.0.2:12345
Remote debugging using 10.0.0.2:12345
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Remote replied unexpectedly to 'vMustReplyEmpty': timeout
gdb输出

new_argv[0] = "/bin/hello"
Process /bin/hello created; pid = 1385
>>>> entering linux_wait_1
linux_wait_1: [Process 1385]
my_waitpid (-1, 0x40000001)
my_waitpid (-1, 0x1): status(57f), 1385
LWFE: waitpid(-1, ...) returned 1385, ERRNO-OK
LLW: waitpid 1385 received Trace/breakpoint trap (stopped)
linux_low_filter_event: pc is 0x400190
pc is 0x400190
stop pc is 0x400190
my_waitpid (1386, 0x0)
my_waitpid (1386, 0x0): status(177f), 1386
my_waitpid (1386, 0x0)
(gdb) file hello
Reading symbols from hello...done.
(gdb) target remote 10.0.0.2:12345
Remote debugging using 10.0.0.2:12345
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Remote replied unexpectedly to 'vMustReplyEmpty': timeout

有没有想过?我也有同样的问题。