5.5.1. Running the examples with debug support

To start the examples with support for debugging, use the normal command to start the executable, but add the -d option.

For example, enter the following text to start the Dhrystone application with a debug server:

./dhrystone.x  $PVLIB_HOME/images/dhrystone.axf -d

To debug the application, attach Model Debugger to the simulation. All Model Debugger features such as, for example, source level debugging, step, step over, and breakpoints, can be used to debug the application.

Figure 5.4 shows how the CADI debug server is linked into the generated SystemC component and enables debug access to the wrapped Fast Models virtual platform. The CADI interface enables attaching Model Debugger and performing interactive debug sessions. Debugging the wrapped native SystemC components is possible by using native debug methods of the platform in use, such as GDB on Linux or Visual C++ on Win32 platforms.

Figure 5.4. CADI client and server connects Model Debugger and system

Model Debugger is installed with the Fast Models installation. Start Model Debugger and select Connect to Model from the File menu to list all running simulations. Select the core component and connect by double-clicking on the system to debug. See the Model Debugger User Guide for more information on debugging targets.

Copyright © 2007-2009 ARM Limited. All rights reserved.ARM DUI 0370H