摘要
调试系统是嵌入式芯片配套基础软件的重要组成部分。而调试系统的核心是对可执行文件中调试信息的解析以及对调试信息的管理。DWARF调试信息格式是一种普遍使用的调试信息格式,它可以以压缩的二进制格式存储调试信息,并具有丰富的表达形式。BWDSP芯片是一款自主开发的高性能通用DSP,其调试系统使用一种自主创新的方法解析DWARF行号调试信息。经实践证明,该方法可以高效正确地解析出DWARF行号调试信息。
Debugging system is an important component of basic software for embedded systems. The kernel of debugger system is to analyze debug-ging information stored in executable files, and to manage debugging information efficiently. DWARF format is a commonly used format for storing debugging information, and its advantages are compact format and powerful expression. Introduces a method to analyze line number and address information from DWARF format in BWDSP's debugger system. Application results prove that the method can effi-ciently and correctly decode line number information in DWARF.