远程调试树莓派的问题

时间:2019-04-18 18:22:57

标签: eclipse raspberry-pi remote-debugging

我在ECLIPSE中进行远程调试c项目时遇到问题。

控制台代码:

chmod 777 /home/pi/remote-debugging/touch;gdbserver  :2345 /home/pi/remote-debugging/touch;exit

Last login: Thu Apr 18 20:08:40 2019 from 10.3.0.13

pi@raspberrypi:~$ chmod 777 /home/pi/remote-debugging/touch;gdbserver  :2345 /home/pi/remote-debugging/touch;exit
Process /home/pi/remote-debugging/touch created; pid = 2590
Listening on port 2345
Remote debugging from host 10.3.0.13

然后我收到内存保护冲突。 “线程#1 3013 [核心:0](已暂停:信号:SIGSEGV:分段错误)”

代码:

#include <stdio.h>

int main()
{
printf("Hello, world\n");
exit(0);
}

SCREEN1

SCREEN2

0 个答案:

没有答案