摘要
在嵌入式软件开发中,调试是一个重要的环节,调试工具是衡量软件开发环境优劣的重要因素。本文对插桩方式的嵌入式远程调试工具进行了分析与研究,采用GNUgdb远程串口通信协议,通过软件接管目标系统的全部异常实现对目标程序的调试与跟踪,实现读/写内存与寄存器、设置断点、单步执行和继续执行功能,并应用于基于ARM的RTEMS嵌入式实时操作系统与应用程序的调试中。
Program debugging is a comparatively important step in embedded software development. Debugging tool is an important factor determining whether a software development environment is good or not. The paper analyses and studies the embedded debug ging tool of stub mode. It adopts the remote serial communication protocol of GNU gdb, and takes over all exception handlers by software to implement debugging and tracking of object program. It realizes reading and writing memory units and registers, setting breakpoint, single step and continue running. Stub mode is applied to RTEMS embedded real-time operating system and applicatior program for debugging based on ARM.
出处
《微计算机信息》
2009年第2期87-89,共3页
Control & Automation
基金
基金项目主请人:李红卫
江苏省高校自然科学研究资助项目
项目名称:RTEMS嵌入式实时操作系统的研究
颁发部门:江苏省教育厅(06KJD520052)
关键词
嵌入式系统
远程调试
插桩
断点
单步
embedded system
remote debugging
stub
breakpoint
step