我尝试使用gdb进行远程调试。
在目标计算机上(配有Ubuntu Mate 15.10的Raspberry Pi),我运行gdbserver :4444 main
。在我的笔记本电脑上,我运行./arm-linux-gnueabihf-gdb ~/workspace/piCCompileProj/Debug/main
。在gdb提示符(在我的笔记本电脑上)下,我输入:
target remote <target>:4444
run
但是gdb报告了以下错误信息:
我如何使用gdb远程调试?当我直接在树莓派上使用gdb时,它可以正常运行。"remote"目标不支持"run"。请尝试"help target"或"continue"。