首页 | 本学科首页   官方微博 | 高级检索  
     

一种DWARF格式C语言调试信息分析方法
引用本文:林广栋,黄光红,耿锐.一种DWARF格式C语言调试信息分析方法[J].数字社区&智能家居,2014(9):5825-5833.
作者姓名:林广栋  黄光红  耿锐
作者单位:中国电子科技集团公司第三十八研究所,安徽合肥230031
摘    要:DWARF格式是一种常见的调试信息格式,它以节点作为存储调试信息的基本单元。BWDSP系列芯片的调试系统使用一种自主可控的算法分析C语言的DWARF调试信息。该方法首先读取.debug_abbrev节区,获得节点的缩略信息。然后读取.debug_info节区,获取调试信息节点属性的取值,并把这些调试信息存储为内部数据结构。该算法已经在BWDSP系列芯片的调试系统中得到成功的使用,实践验证了其可行性与正确性。

关 键 词:DWARF  调试信息  调试系统  BWDSP

A Method to Analyze DWARF Format C Language Debugging Information
LIN Guang-dong,HUANG Guang-hong,GENG Rui.A Method to Analyze DWARF Format C Language Debugging Information[J].Digital Community & Smart Home,2014(9):5825-5833.
Authors:LIN Guang-dong  HUANG Guang-hong  GENG Rui
Affiliation:(NO. 38th Research Institute of China Electronic Technology Group Corporation, Hefei 230088, China)
Abstract: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.
Keywords:DWARF  debugging information  debugger system  BWDSP
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号