11.9 Disassembly view

Use the Disassembly view to display a disassembly of the code in the running application.

It also enables you to:

  • Specify the start address for the disassembly. You can use expressions in this field, for example $r3, or drag and drop a register from the Registers view into the Disassembly view to see the disassembly at the address in that register.

  • Select the instruction set for the view.

  • Create, delete, enable or disable a breakpoint or watchpoint at a memory location.

  • Freeze the selected view to prevent the values being updated by a running target.

Figure 11-12 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.

Toolbar 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 different 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.

Next Instruction
Shows the disassembly for the instruction at the address of the program counter.
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 for which you want to view the disassembly. You can specify the address as a hex number or as an expression, for example $PC+256, $lr, or main.

Context menu options are available for editing this field.

Size field

The number of instructions to display before and after the location specified in the Address field.

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]

Auto detect the instruction set from the image.

A32 (ARM)

ARM instruction set.

T32 (Thumb)

Thumb® instruction set.

T32EE (ThumbEE)
ThumbEE instruction set.
Byte Order

Selects the byte order of the memory. The default is Auto (LE).

Clear History

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

Update View When Hidden

Enables the updating of the view when it is hidden behind other views. By default this view does not update when hidden.

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:

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, 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++ source editor view, if necessary.

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

Show in Registers

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

Show in Functions

If the memory address corresponds to a function, then displays the Functions view with the related function selected.

Translate Address <address>

Displays the MMU view and translates the selected address.

Toggle Watchpoint
Sets or removes a watchpoint at the selected address.
Toggle Breakpoint

Sets or removes a breakpoint at the selected address.

Toggle Hardware Breakpoint

Sets or removes a hardware breakpoint at the selected address.

Toggle Trace Start Point

Sets or removes a trace start point at the selected address.

Toggle Trace Stop Point

Sets or removes a trace stop point at the selected address.

Toggle Trace Trigger Point

Starts a trace trigger point at the selected address.

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.

Select All

Selects all the text.

Non-ConfidentialPDF file icon PDF versionARM 100953_0527_00_en
Copyright © 2010–2017 ARM Limited or its affiliates. All rights reserved.