求教gdbserver 远程调试的问题?
上位机是Redhat 9.0
下位机是Intel XScale IXP-422 266Mhz的嵌入linux。
下位机上启动gdbserver:显示如下:
gdbserver :9999 gdbtest-debug
Process gdbtest-debug created; pid = 378
Listening on port 9999
Remote debugging from host 192.168.4.1
上位机用gdb,显示如下:
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) target remote 192.168.4.127:9999
Remote debugging using 192.168.4.127:9999
0x00000000 in ?? ()
(gdb) cont
Continuing.
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0xbde0: Input/output error.
从上面的显示看,gdb 和gdbserver直接的连接好像是通的。但为什么不能执行呢?
我在两台PC之间远程调试是可以的?是否还有什么其他的参数要设置?