Any application software will inevitably contain bugs during the development cycle. In order to correct these software flaws, developers need access to powerful debugging tools that allow them to be more efficient as well as be able to dig into the detailed operation of their application. Therefore, the debugger is a comparatively important tool in software development, particularly in the embedded software development. The paper analyses and studies the embedded debugging technique 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 to read and to write memory units and registers, to set breakpoint, single step and to continue running. Stub mode is applied to RTEMS embedded real-time operating system and application program for debugging based on ARM.
[1]
Brad A. Myers,et al.
Development and evaluation of a model of programming errors
,
2003,
IEEE Symposium on Human Centric Computing Languages and Environments, 2003. Proceedings. 2003.
[2]
J. Langer,et al.
Debug-Tool for Embedded Real Time Systems
,
2005,
EUROCON 2005 - The International Conference on "Computer as a Tool".
[3]
Minheng Tan.
A minimal GDB stub for embedded remote debugging
,
2002
.
[4]
Gustavo Ribeiro Alves,et al.
Real time fault injection using a modified debugging infrastructure
,
2006,
12th IEEE International On-Line Testing Symposium (IOLTS'06).