|Home > Using Model Debugger > Model Debugger application windows > Main toolbar|
The main toolbar provides buttons for frequently used functions. If the functionality is not available in the current context, the buttons are grayed out.
Click to open a model library and application file. When the button is clicked:
If a model library is not already open, a dialog box is displayed to enable you to select a model library to load.
Select the model library and click OK.
If an application is not already open, a dialog box opens to enable you to select the application file to load into the target.
Select the application file and click OK.
If a model library and application are already open, a dialog box is displayed to select the source file for the application.
Select the source file and click OK.
You might use a Symmetric MultiProcessing (SMP) model with more than one processor, such as one based on the Cortex®‑A9 processor. In this case, Model Debugger only loads one image that is run on all processors. All Model Debuggers that are attached to the SMP model load the debug information for that image. This feature is called SMP awareness.
In certain circumstances, you can switch SMP awareness on or off by using the Model Debugger Preferences dialog box.
Click to open the breakpoint manager.
To run the simulation until a breakpoint is hit or some exception occurs, click this button. Encountering a simulation halt is an example of an exception that stops simulation.
Click to pause or continue the current high-level simulation step command. An example would be a source-level step. The button text and icon changes depending on whether the simulation is running (Pause) or stopped (Cont).
You can interrupt high-level simulation control commands with breakpoints before completion. These commands can be completed by clicking the Cont button.
Click to stop the execution of the model being debugged.
To execute until the simulation reaches a different source line, click to cause a source-level step.
To execute the simulation and step over any function calls, click to cause source-level steps.
To execute control command until the current function is exited, click to cause source-level steps.
Click to advance the simulation by executing one source-level instruction.
Click to advance the simulation by one source-level instruction without following any call instructions.
Click to advance the simulation until a return instruction is executed.
Click to advance the simulation by executing the number of source-level instructions that are specified in the <-n-> control.
Click to advance the simulation by a single cycle.
Click to advance the simulation by the number of cycles that are specified in the edit box. The default is 1000 cycles.
Enter the number of cycles to step if the Cycle n or Back n buttons are clicked. The default is 1000 cycles.
If the i Step n button is clicked, this control indicates the number of instructions to step.
Click to step the simulation backwards by the number of cycles that are specified in the edit box. The default is 1000 cycles.
Click to step the simulation backwards by one cycle.
Click to cause a reset of the target model. The application is reloaded.
Click to cause a reset of the target model. The
application is reloaded. The model runs until the
of the application source code is reached.
main()function can be found in the debug information of the application file.