3.4.2 Debugging with GDB at the source level
How to debug at the source level with GNU Debugger on Linux with System Canvas.
- An alternative way to debug a CADI shared library is with the Model Shell executable
or Model Debugger executable, using a Linux shell to start it.
- To debug ISIM targets, start a GDB session directly from System Canvas by selecting
Launch Host Debugger from the Project
menu. You can specify command line arguments on the Applications
page of the Preferences dialog.
Use GDB to perform LISA+ source-level debugging on Linux.
Use GDB version 6.2 or higher.
- Start a GDB session with Model Debugger as the executable by typing
modeldebugger.exec in the console.
run at the GDB prompt to
start Model Debugger.
You can load the model in the same step by adding the name of the model library, for example:
Model Debugger starts and the Configure Model Parameters
- Configure any required parameters for the target,
then click OK.
The Select Targets dialog opens. The ARM processor is
selected by default.
- Select any additional targets to load. Model Debugger creates a separate window for each
target. Click OK to close the dialog.
- Load the applications to the targets that execute
For a single target, Model Debugger displays a dialog prompting for the application.
For more than one target, load the application to the targets in each debug view separately by
selecting Load Application from the
Alternatively, select the application when Model Debugger starts by adding command line option
-a in line with the name of the target and application file:
run cadi_system_Linux-Debug-GCC-4.1.so -a
- GDB is now ready to debug the model source code.