To Set A Breakpoint For A C+ + Object Instance - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

Chapter 3: Loading and Executing Programs
Using Breakpoints
Enter the address of the instruction location, and press the < Return> key.
The instruction breakpoint causes the debugger to halt program execution
each time the target program attempts to execute an instruction at the
specified memory location(s). The debugger halts program execution before
the program executes the instruction at the breakpoint address.
If you specify a range, the debugger sets breakpoints on the first byte of each
instruction within the specified range.
Set breakpoints are marked with asterisks "*" in the code window. In the
high-level mode, dots "." show the source lines associated with a breakpoint.
Note
The default setting of the debugger option Align_Bp (align breakpoint) is oFF.
Setting the option to On causes breakpoints to be aligned based on the
assembly language instructions found in memory at the time the breakpoints
are set. If multiple breakpoints exist in the same program area, their
alignment may be incorrect. Make sure the Align_Bp option is set to oFF to
prevent breakpoint alignment problems. See the "Configuring the Debugger"
chapter for more information.
Example
To set an instruction breakpoint at line 82 of the current module:
Breakpt Instr #82

To set a breakpoint for a C+ + object instance

• Use the dot or arrow operator to specify the object and the member function.
This allows you to set a breakpoint for a member function only when it is
invoked for a given object or instance.
Example
To break when function cfunc is invoked by object instance cobj1, enter:
Breakpoint Instr cobj1.cfunc
92

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents