Qt Creator远程GDB调试嵌入式ARM开发板
参考链接:
https://www.cnblogs.com/whik/p/12430281.html
https://blog.csdn.net/dongdong_csdn/article/details/89432436
https://blog.csdn.net/A18373279153/article/details/80269140
设置开发板端
开发板上设置连接GDB调试端口为111
[root@100ask:/mnt/build-hello_console-100ask_mp157-Debug]# /usr/bin/gdbserver 192.168.1.20:111 hello_console
Can't bind address: Address already in use.
Exiting
更改端口号后提示如下:
[root@100ask:/mnt/build-hello_console-100ask_mp157-Debug]# /usr/bin/gdbserver 192.168.1.20:9999 hello_console
Process /mnt/build-hello_console-100ask_mp157-Debug/hello_console created; pid = 2949
Listening on port 9999
设置Qt Creater
Qt端进入调试-->开始调试-->Attach To Running Debug Server
设置如上图,点击OK后开发板终端提示如下(已经可以调试了):
Remote debugging from host 192.168.1.20, port 4618
hello world!
Child exited with status 0