我正在尝试远程调试交叉编译的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,但是我尝试更改 两者都仍然得到相同的结果。
注释
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输出
(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