Disassembly view

This view enables you to:

Figure 38. 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:

Linked: context

Links this view to the selected connection in the Debug Control view. This is the default. Alternatively you can link the view to a specific connection. If the connection you want is not shown in the drop-down list you might have to select it first in the Debug Control view.

Back, Forward

Navigates through the history list.

<Next Instruction>

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

$LR

Navigates to the LR register.

expression

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

address

Navigates 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.

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.

Search

Searches through debug information for symbols.

View Menu

The following View Menu options are available:

New Disassembly View

Displays a new instance of the Disassembly view.

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.

Clear History

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

Refresh

Refreshes the view.

Freeze Data

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

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

Sets or removes a breakpoint at the selected address.

Toggle Hardware Breakpoint

Sets or removes a hardware breakpoint at the selected address.

Resolve Breakpoint

Resolves a pending breakpoint at the selected address.

Enable Breakpoint

Enables the breakpoint at the selected address.

Disable Breakpoint

Disables the breakpoint at the selected address.

Copy

Copies the selected address.

Paste

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

Select All

Selects 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 Selection

Runs to the selected address

Set PC to Selection

Sets the PC register to the selected address.

Show in 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

Copies and deletes the selected text.

Copy

Copies the selected text.

Paste

Pastes text that you previously cut or copied.

Delete

Deletes the selected text.

Undo

Reverts the last change.

Select All

Selects all the text.

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0446G
Non-ConfidentialID092311