Disassembly view

This view enables you to:

Figure 30. Disassembly view

Disassembly view

Gradient shading in the Disassembly view shows the start of each function.

Solid shading in the Disassembly view shows the instruction at the address of the current PC register followed by any related instructions that correspond to the current source line.

In the left-hand margin of the disassembly view you can find a marker bar that displays view markers associated with specific locations in the disassembly code.

To set a breakpoint, double click in the marker bar at the position where you want to set the breakpoint. To delete a breakpoint, double-click on the breakpoint marker.

Note

If you have sub-breakpoints to a parent breakpoint then double-clicking on the marker also deletes the related sub-breakpoints.

Show/hideToolbar and context menu options

The following options are available from the toolbar or context menu:

Refresh

Refresh the view.

Back, Forward

Navigate through the history list.

<Next Instruction>

Navigate to the selected stack frame in the Debug Control view.

$LR

Navigate to the LR register.

expression

Navigate to the address specified by an expression. For example $PC+256.

address

Navigate to the specified address.

History

Addresses and expressions you specify in the Address field are added to the drop down box, and persist until you clear the history list or exit Eclipse. If you want to keep an expression for later use, add it to the Expressions view.

Clear History, <Clear Data>

Clears the list of addresses and expressions in the History drop-down box.

Address field

Enter the address where you want to view the disassembly.

Context menu options are available for editing this field.

Size field

The number of instructions to display before and after the location pointed to by the program counter.

Context menu options are available for editing this field.

Instruction Set

The instruction set to show in the view by default. Select one of the following:

[AUTO]

autodetect the instruction set from the image.

ARM

ARM® instruction set.

Thumb

Thumb® instruction set.

Freeze Data

Toggle the freezing of the data in the view. This also disables and enables the Size and Type fields and the Refresh option.

New Disassembly View

Display a new instance of the Disassembly view.

Action context menu

When you right-click in the left margin, the corresponding address and instruction is selected and this context menu is displayed. The available options are:

Toggle Breakpoint

Set or remove a breakpoint at the selected address.

Toggle Hardware Breakpoint

Set or remove a hardware breakpoint at the selected address.

Resolve Breakpoint

Resolve a pending breakpoint at the selected address.

Enable Breakpoint

Enable the breakpoint at the selected address.

Disable Breakpoint

Disable the breakpoint at the selected address.

Copy

Copy the selected address.

Paste

Paste into the Address field the last address that you copied.

Select All

Select all disassembly in the range specified by the Size field.

If you want to copy the selected lines of disassembly, you cannot use the Copy option on this menu. Instead, use the copy keyboard shortcut for your host, for example Ctrl+C on Windows.

Run to Here

Run to the selected address

Set PC to Here

Set the PC register to the selected address.

Show source

If source code is available:

  1. Opens the corresponding source file in the C/C++ editor view, if necessary.

  2. Highlights the line of source associated with the selected address.

Show in register view

If the memory address corresponds to a register, then displays the Registers view with the related register selected.

Editing context menu options

The following options are available on the context menu when you select the Address field or Size field for editing:

Cut

Copy and delete the selected text.

Copy

Copy the selected text.

Paste

Paste text that you previously cut or copied.

Delete

Delete the selected text.

Undo

Undo the last change.

Select All

Select all the text.

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0446D
Non-ConfidentialID011411