Qt Creator远程GDB调试嵌入式ARM开发板
参考链接:
https://www.cnblogs.com/whik/p/12430281.html
https://blog.youkuaiyun.com/dongdong_csdn/article/details/89432436
https://blog.youkuaiyun.com/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
本文介绍了如何使用QtCreator进行远程GDB调试嵌入式ARM开发板。首先,在开发板上设置GDB服务器,将调试端口更改为9999并启动。然后,在QtCreator中选择‘开始调试’->‘附加到运行的调试服务器’,正确配置IP地址和端口。完成设置后,成功建立了远程调试连接,开发板终端显示已开始调试,可以进行代码调试操作。
687

被折叠的 条评论
为什么被折叠?



