• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (1): 178-182.

• 论文 • 上一篇    下一篇

基于命名变量的全景数据在线实时调试模型

张少波,饶 丹   

  1. (国网电力科学研究院,江苏 南京 210003)
  • 收稿日期:2011-06-04 修回日期:2011-08-30 出版日期:2012-01-25 发布日期:2012-01-25

An Online Data Debugging Model Based on Naming Variables

ZHANG Shaobo,RAO Dan   

  1. (State Grid Electric Power Research Institute,Nanjing 210003,China)
  • Received:2011-06-04 Revised:2011-08-30 Online:2012-01-25 Published:2012-01-25

摘要:

随着嵌入式系统硬件架构和应用软件复杂度的提高,已有的与处理器配套的集成开发调试环境已不能很好地满足对系统的调试需求。本文介绍了一种能够按名称实时在线查看和修改系统中所有变量的调试模型,对其架构结构进行了描述,并分析了实现该模型的关键技术:结构体偏移地址的生成、调试代理动态注册机制。文中还将该模型的调试方式以可视化形式展现。该模型适用于由多个CPU组成的分布式嵌入式系统,能够在不影响系统运行的情况下,读写各CPU中动态对象的成员变量信息和内存区域信息;同时整个嵌入式系统只需要提供一个接口,节省了硬件资源。

关键词: 实时访问;嵌入式系统;调试;命名变量

Abstract:

With the development of the embedded system framework and application software, the existing processororiented debugging methods do not satisfy the requirement for system debugging. This paper introduces a debugging model for viewing and updating the variables’ values in all the boards of a device via variable names, and describes the debugging framework. The key technologies of an algorithm for the address calculating of the “struct” type variables and the dynamic registration method of debugging are implemented in this model. This model with a visual tools application for variable debugging is shown in this paper. This model can be used in a embedded system composed of  many CPU boards. The debugging method does not affect a system operation when viewing the  plugin dynamic object member variables and memory region information, and the embedded devices only need to provide a debug interface for debugging, which saves some hardware resources.

Key words: realtime access;embedded system;debugging;naming variable