4.5.2. Procedure

To load two images to the same debug target:

  1. Load the first image, for example hello.axf, with the default load options (see Loading an executable image).

  2. Load a second image to the same target, for example demo.axf.

    This image must not overlap any part of the first image in memory. You must load the second image as follows:

    1. Select Target ? Load Image... from the main menu to display the Load File to Target dialog box (see Loading an executable image).

    2. Unselect the Replace Existing File(s) check box, to prevent this image replacing the first image.

      The Set PC to Entry point check box is also unselected. This ensures that the PC still points to the entry point in the first image.

      Note

      The Set PC to Entry point check box must be selected only for the image that contains the entry point, which might not be the first image you load.

    3. Click Open.

  3. Select View ? Process Control from the default Code window main menu to display the Process Control pane.

  4. Expand the display to see the process details, shown in Figure 4.5.

    Figure 4.5. Multiple images in the Process Control pane

    Multiple images in the Process Control pane

Because no image is currently executing, the Process entry shows the current location of the PC, which was auto-set when the first image was loaded. You can set the PC manually to start debugging or reload the image that you want to test. For information on changing the PC see:

Alternatively, use run and step operations (see Chapter 8 Executing Images).

Note

RealView Debugger can only keep track of the entry point for a single image. Therefore, if you are working with multiple images, you must set a manual breakpoint at the entry point of any other images you have loaded (see Chapter 10 Setting Breakpoints). This ensures that RealView Debugger is able to debug these images in the usual way.

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0153H
Non-Confidential