一种调试系统中C语言复杂变量查看功能实现方案  被引量:6

A Solution in Debugger System to Display Complex Variables of C Language

在线阅读下载全文

作  者:林广栋[1] 朱艳[1] 黄光红[1] 

机构地区:[1]中国电子科技集团公司第三十八研究所,安徽合肥230088

出  处:《中国集成电路》2015年第8期41-49,共9页China lntegrated Circuit

摘  要:变量查看是C语言调试系统的基本功能之一。实现C语言简单变量查看功能很容易,但实现C语言任意复杂变量查看的功能却并不容易。实现该功能的难点在于得到复杂变量各内部元素的地址和大小等信息。要实现该功能,必须分析被调试文件中的调试信息,从中得到复杂变量各元素的调试信息。本文介绍了BWDSP芯片配套的调试系统中C语言复杂变量查看功能实现方案。该方案使用字符串协议描述复杂变量的元素,并使用统一的数据结构存储被调试文件的调试信息。该方案可以实现C语言任意复杂变量的任意元素的查看及修改功能。Variable display is a basic function of C language debugger. It is easy to implement simple variable display functionality; however, it is difficult to achieve this for complex variable. The difficulty lies in describing elements of complex variable and locating address of the elements. To achieve this, a debugger must analyze debugging informa- tion of the application, and extract debugging information of the elements. The paper introduces solution for the prob- lem in debugger system of BWDSP. The solution defines a string representation protocol for elements in complex vari- able. The solution uses uniform data structure to store debugging information. The solution successfully implements display functionality for any complex variable

关 键 词:调试 调试信息 DWARF格式 魂芯 C语言 变量 

分 类 号:TP312.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象