4.2 Debugging with GDB at the source level
This section describes 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
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
gdb modeldebugger.exec in the console.
run at the GDB prompt to start
You can load the model in the same step by adding
the name of the model library, for
Model Debugger starts and the Configure Model Parameters dialog opens.
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. Click OK to close the dialog.
Model Debugger creates a separate window for each target.
Load the applications to the targets that execute software:
GDB is now ready to debug the model source code.
This section contains the following subsection: