To Set A Breakpoint For A C+ + Object Instance - HP B1476 68020 User Manual

Debugger/emulator
Table of Contents

Advertisement

Note
Setting an instruction breakpoint in a memory area mapped as emulation
ROM is allowed because the debugger can write to emulation ROM addresses.
Setting an instruction breakpoint in a memory area mapped as target ROM is
allowed if you answer no to the configuration question Break processor on
write to ROM?. The breakpoint will be recorded in the breakpoint window.
However, if the target memory area is made up of ROM chips in the specified
memory area, the BKPT instruction cannot be written to memory. Therefore,
the breakpoint will never be executed.
If you answer yes to the configuration question Break processor on write to
ROM?, you are not permitted to set breakpoints in areas mapped as target
ROM.
Examples
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
To do this the hard way, you could enter:
Breakpoint Instr C::cfunc\@entry;when (C::cfunc\this==
&cobj1)
Chapter 4: Loading and Executing Programs
Using Breakpoints
109

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1476 68030

Table of Contents