30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Viewing the Assembler Version of Your Code<br />

Figure 118: Address Only<br />

(Absolute Addresses)<br />

Both Source and assembler<br />

Select the View > Source As > Both command.<br />

The Source Pane divides into two parts. The left pane<br />

contains the program’s source code and the right pane<br />

contains the assembler version of this code. You can<br />

set breakpoints in either of these panes. Setting an action<br />

point at the first instruction after a source statement<br />

is the same as setting it at that source statement.<br />

The commands in the following table tell <strong>TotalView</strong> to display your assembler<br />

code by using symbolic or absolute addresses:<br />

Command Display<br />

View > Assembler > By Address Absolute addresses for locations and<br />

references (default)<br />

View > Assembler > Symbolically Symbolic addresses (function names and<br />

offsets) for locations and references<br />

You can also display assembler instructions in a Variable Window. For more information,<br />

see “Displaying Machine Instructions” on page 297.<br />

The following three figures illustrate the different ways <strong>TotalView</strong> can display<br />

assembler code. In the following figure, the second column (the one to<br />

the right of the line numbers) shows the absolute address location. The<br />

fourth column shows references using absolute addresses.<br />

The following figure shows information symbolically. The second column<br />

shows locations using functions and offsets. (See Figure 119 on<br />

page 173.)<br />

The final assembler figure shows the split Source Pane, with one side showing<br />

the program’s source code and the other showing the assembler version.<br />

In this example, the assembler is shown symbolically. How it is shown<br />

depends on whether you’ve selected View > Assembler > By Address or<br />

View > Assembler > Symbolically. (See Figure120 on page173.)<br />

172 Chapter 8: Using <strong>TotalView</strong> Windows

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!