Load multiple binaries

The CodeWarrior debugger supports loading multiple binaries(.elf), to make the symbols and source code of other executable available within a debugging session.

To load multiple binary files within a debugging session:

  1. Click Run > Debug Configurations.

    The Debug Configurations dialog appears. The left side of this dialog has a list of debug configurations that apply to the current application.

  2. Expand the CodeWarrior configuration and select the debug configuration that you want to modify.

    The following figure shows the Debug Configurations dialog with the settings for the debug configuration you selected.

    Figure 1. Debug Configurations dialog

    Debug Configurations Dialog

  3. Click the Debugger tab to view the corresponding debugger settings page.
  4. Click the Other Executables tab under the Debugger Options pane.
  5. Click Add to open the Debug Other Executable dialog.

    The Debug Other Executable dialog allows you to specify additional ELF files to download or debug in addition to the main executable file associated with the launch configuration.

    Figure 2. Debug Other Executable

    Debug Other Executable

  6. Enter the path to the additional executable file that the debugger controls in addition to the current project's executable file. Alternatively, click the Browse button to specify the file path.
  7. Select the Load Symbols checkbox to have the debugger load symbols for the specified file. Deselect to prevent the debugger from loading the symbols. The Debug column of the File list corresponds to this setting.
  8. Select the Download to Device checkbox to have the debugger download the specified file to the target device. Deselect this checkbox to prevent the debugger from downloading the file to the device. The Download column of the File list corresponds to this setting.
  9. Click OK to add the additional executable to the Other Executables file list.
  10. Click Debug to launch a debug session with multiple binaries.

Multiple binary files within a debugging session are now available.