想在LINUX下使用CODE::BLOCKS 编写调试并编译连接ARM运行程序。IDE编译环境默认为:GNU GCC 编译器。修改如下:
1. 至Settings->Compiler and debugger settings 将Setected compiler 修改为GNU ARM GCC 编译器。
2.在同页面选择子页‘Toolchain executables’->'program files'项 替换成对应目录下的文件依次为:arrm-linux-gcc
、arm-linux-g++、arm-linux-g++、arm-linux-ar、arm-linux-gdb、、make。
3.加载项目设置断点后,执行‘Debug/Continue’ 按钮后,DEBUGGER提示:
Setting breakpoints
Debugger name and version:GNU gdb 6.8
No source file named /root/devl/tmp/file_io/3.1/copy_files.c
Breakpoint 1("root/devl/tmp/file_io/3.1//copy_files.c:35") pending.
初步判断:编译无警告和错误。看到提示 确认工程下文件copy_files.c 路径,确实为‘/root/devl/tmp/file_io/3.1/’
不理解‘ No source file named ’为何意。
Breakpoint 1("root/devl/tmp/file_io/3.1//copy_files.c:35") pending.
此句提示是否为正确。
欢迎各位大虾给出你们的观点。偶这为啥debugger为啥进入不了断点。
更换编译器,CODE::BLOCKS 无法DEBUG 至断点
最新推荐文章于 2026-06-25 15:04:35 发布
本文介绍如何在 Linux 下使用 CODE::BLOCKS IDE 进行 ARM 程序的编写、编译及调试,并针对遇到的断点无法正常工作的问题进行探讨。

4597

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



