User guide
Nios II IDE Help System
Viewing Disassembly
Viewing disassembly allows you to analyze the exact instruction-by-instruction execution
during a debug session. You can use the Disassembly view to see mixed C/C++ and assembly
source code, set breakpoints, and single step through your code.
To open Disassembly view:
To view disassembly, start a debug session. The Disassembly view displays in the Debug
perspective automatically.
To step through code:
By default, stepping through the code executes entire C/C++ statements. To step through
individual assembly instructions, click Instruction Stepping Mode in the Debug view
toolbar. In instruction stepping mode, stepping through code advances the instruction
pointer in the Disassembly view to the next assembly instruction. Because multiple
assembly instructions represent a single line of C/C++ code, the instruction pointer might
not advance in the C/C++ Editor view with each instruction step. Click
Instruction
Stepping Mode a second time to return to stepping at the C/C++ statement level.
Note: If the IDE cannot locate source code for a function, stepping through the code
automatically uses Disassembly view regardless of whether instruction stepping mode
is on or off.
To set breakpoints on assembly instructions:
Double-click in the margin to the left of the instruction to toggle an address breakpoint on
and off. You can also right-click in the margin, and then click Toggle Breakpoint.
To copy text from the Disassembly view:
You can highlight and copy text in the Disassembly view by using the keyboard shortcut
(e.g. Type Ctrl-C to copy on Windows).
Related Nios II IDE Help Topics
About Running and Debugging Projects
Debugging the Project—This page of the Software Development Tutorial contains
debugging instructions.
Disassembly View
Related Eclipse and CDT Help Topics
C/C++ Development User Guide > Concepts > Debug > Breakpoints— Contains
details on adding breakpoints.
Related Topics on the Web
70