To Set A Breakpoint For Overloaded C+ + Functions; To Set A Breakpoint For C+ + Functions In A Class - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

To do this the hard way, you could enter:
Breakpoint Instr C::cfunc\@entry;when (C::cfunc\this==
&cobj1)
To set a breakpoint for overloaded C+ +
functions
• To set a breakpoint at one of the functions when you know the argument type,
supply the argument type following the function name.
• To set a breakpoint at one of the functions when you don't know which
argument type you want, just use the name of the function. The debugger will
list the choices with a menu in the Journal window.
Example
To set a breakpoint for the function print (which is not in a class) for float
arguments, enter print (float) in the entry buffer and select
Breakpoints→Set ().
Another way to set a breakpoint for the function print is to enter print in the
entry buffer, select Breakpoints→Set (), then type the number of "print
(float);" from the menu in the Journal window.

To set a breakpoint for C+ + functions in a class

• Set a breakpoint for the C+ + class.
Examples
To set breakpoints for all member functions of the class classname, enter
"classname::" in the entry buffer, then select Breakpoints→Set () from the
menu bar.
Or, using the command line, enter:
Chapter 3: Loading and Executing Programs
Using Breakpoints
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents