- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于Eclipse的嵌入式软件交叉调试.doc
基于Eclipse的嵌入式软件交叉调试
摘 要: 在嵌入式软件开发过程中调试占据很重要的位置。在详细分析Eclipse,CDT和GDB的特征后,扩展CDT的调试服务框架及其扩展点,实现在宿主机/目标机的开发模式中使用交叉GDB进行嵌入式软件的源代码级交叉调试软件。该交叉调试软件使用Eclipse作为集成开发环境,集成并扩展CDT插件,在宿主机端解析、加载带调试信息的目标文件,启动交叉GDB处理用户的调试操作,通过目标机服务器把经过封装的调试命令发给目标机执行,完成调试功能。该交叉调试方式支持通用的调试操作如设置/删除断点、源代码级或汇编级单步执行、连续执行目标程序、查看/修改目标程序变量、寄存器、内存和查看表达式等,以全软件的方式解决了嵌入式软件开发调试比较困难的、代价高的问题,加快了嵌入式软件开发周期。
关键词: 交叉调试; Eclipse; CDT; GDB; 嵌入式软件
中图分类号: TN911?34 文献标识码: A 文章编号: 1004?373X(2015)06?0086?04
Cross?debugging of Eclipse?based embedded software
TIAN Dan, LI Yun?xi, HU Ning, MAI Xian?gen
(The Third Laboratory of ACTRI, AVIC, Xi’an 710068, China)
Abstract: Based on the detailed analysis of the characteristics of Eclipse, CDT and GDB, the debugging service framework of CDT and its extension point was extended, and the cross debugging of embedded software in the source code level was realized by cross GDB used in development mode of host/target computer. Eclipse is adopted in the cross debugging software as the integrated development environment to integrate and expand the CDT plug?in, parse and load the object file with debugging information at host machine end, start the cross GDB to process the debugging operation of users, and sent the packed debugging command to the target machine through the target server to complete the debugging functions. The cross debugging mode supports universal debugging operations such as breakpoint setting/deletion, single step execution in source code level or assembly level, continuous execution of the target program, check/edition of object program variables, register, memory and expression check. It solved the difficulty in the process of embedded software development and debugging in the whole software mode, reduced its cost, and accelerate the development cycle of embedded software.
Keywords: cross?debugging; Eclipse; CDT; GDB; embedded software
0 引 言
开发任何一个软件都不可避免地存在各种错误,通常程序员利用调试器来跟踪程序执行情况,定位错误产生的位置,找到引起错误的原因,最终改正错误。一般来说,调试器的主要功能是控制目标程序执行过程
文档评论(0)