
Hitachi Embedded Workshop User Manual
212
2. Choose [Toggle Breakpoint] from the pop-up menu, or press F9, at the line showing the address at which
you want the program to stop.
3. You will see a red circle appear in the gutter to indicate that a PC breakpoint has been set.
4. The current breakpoint set can be enabled or disabled by using [Enable/Disable Breakpoint] in the pop-up
menu.
Now when you run your program and it reaches the address at which you set the PC breakpoint, execution halts
with the message "Break = PC Breakpoint" displayed in the [Debug] sheet of the [Output] window, and the
[Source] or [Disassembly] window is updated with the PC breakpoint line marked with an arrow in the gutter.
Note: When a break occurs, the program stops just before it is about to execute the line or instruction at
which you set a program PC breakpoint. If you choose Go or Step after stopping at the PC
breakpoint, then the line marked with an arrow will be the next instruction to be executed.
To set a PC breakpoint by using the [Breakpoints] dialog box
The [Breakpoints] dialog box is shown in figure 4.53. It allows the user to view the current breakpoints set.
Clicking the [Edit Code] button displays the source where each breakpoint is set. The [Remove] or [Remove
All] button deletes one or all breakpoints, respectively. The check box of each breakpoint enables or disables
the breakpoint.
Figure 4.37 Breakpoints Dialog Box
Toggling PC breakpoints
It is possible to toggle the [PC Breakpoints] setting by either double-clicking in the [BP] column of the line
where the PC breakpoint is set or placing the cursor on the line and pressing the F9 key. The setting to be
toggled depends on the debugging platform.
4.10
Elf/Dwarf2 Support
The HEW supports the Elf/Dwarf2 object file format for debugging applications written in C/C++ and assembly
language for Hitachi microcomputers. It provides a powerful way of accessing, observing and modifying the
symbolic level debugging information about the user application that is running.
Key Features
Source level debugging
C/C++ operators
C/C++ expression (casting, pointers, references, etc.)
Ambiguous function names
Overlay memory loading
Watch - locals, and user defined