
Hitachi Embedded Workshop User Manual
183
Section 4 Debugging
This section describes the debugging operations and their related windows and dialog boxes.
4.1
Viewing a Program
How to look at your program as source code and assembly language mnemonics is explained here. The HEW has
various facilities for dealing with code and symbol information which are explained in this section and you will
be shown how to look at text files via the user interface.
Note: After a break occurs, the HEW displays the location of the program counter (PC). In most cases,
for example if an Elf/Dwarf2 based project is moved from its original path, the source file may not
be automatically found. In this case, the HEW will open a source file browser dialog box to allow
you to manually locate the file. This path will then be used to update any other source files in this
debug project.
4.1.1
Viewing the Source Code
Select your source file and click the [Open] button to make the HEW open the file in the integrated editor. It is
also possible to display your source files by double-clicking on them in the [Workspace] window.
Figure 4.1 Source Window
The editor is divided into two areas: the gutter area (containing markers for breakpoints, PC location, etc.) and
the text area (containing color syntax highlighted code). This is shown above in figure 4.1.
4.1.2
Source Address Column
After your program has been downloaded, the [Source] window displays the addresses for the current source file
(figure 4.2). The addresses are shown on the left-hand side of the [Source] window. This is useful for deciding
where to set the PC or hardware breakpoints.