摘要
DWARF格式是一种常见的调试信息格式,它以节点作为存储调试信息的基本单元。BWDSP系列芯片的调试系统使用一种自主可控的算法分析C语言的DWARF调试信息。该方法首先读取.debug_abbrev节区,获得节点的缩略信息。然后读取.debug_info节区,获取调试信息节点属性的取值,并把这些调试信息存储为内部数据结构。该算法已经在BWDSP系列芯片的调试系统中得到成功的使用,实践验证了其可行性与正确性。
DWARF format is a widely used debugging information format. It uses entries as basic element to store debugging information. The debugger system of BWDSP develops an innovative algorithm to analyze DWARF debugging information of C language. Firstly, the algorithm read.debug_abbrev section to retrieve abbreviation information of entry. Then the algorithm analyzes.debug_info section to get value of attribute of entries, and finally stores the extracted information in local data structures.The algorithm has been applied successfully in debugger system of BWDSP and has been proved to be applicable and corrective.
作者
林广栋
黄光红
耿锐
LIN Guang-dong, HUANG Guang-hong, GENG Rui (NO. 38th Research Institute of China Electronic Technology Group Corporation, Hefei 230088, China)
出处
《电脑知识与技术》
2014年第9期5825-5833,5836,共10页
Computer Knowledge and Technology