5.5.3. Running the examples with debug support

To start the examples with support for debugging, use the Run button dropdown list that appears when pressing the arrow on the right side to it. Select Run...and add the -d parameter to the full command line window.


The executable can also be started from the command line of a shell. Just use the normal command to start the executable, but add the -d option. For example, enter the following text to start the Dhrystone application from a shell with a debug server:

./run.sh -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

To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.

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 for Fast Models User Guide for more information on debugging targets.

Copyright © 2007-2010 ARM Limited. All rights reserved.ARM DUI 0370K