The debug agent provides debug services as soon as ChorusOS has succesfully booted, enabling you to debug your ported ChorusOS system. Figure 1-1 shows the component architecture of ChorusOS and the parts of the BSP that must be adapted to your target architecture. The debug agent is not board specific but it relies on some debug critical drivers that are board specific. Therefore some work must be done to ensure that the debug agent works on your new board.
There are two binary files in the ChorusOS operating system bootable image that you must consider when porting the debug agent:
dbgAgent contains generic and processor specific debug agent code. It is platform independent.
dbgBsp contains serial line device driver, board reset functions, and other debug critical drivers.
The interface between dbgAgent and dbgBsp is described in source_dir/nucleus/sys/common/src/kern/bki/dbgBsp.h.