stop Command

The stop command sets a source-level breakpoint.

Syntax

The stop command has the following general syntax:

stop event-specification [ modifier ]

When the specified event occurs, the process is stopped.

The following specific syntaxes are valid:

stop [ -update ] Stop execution now. Only valid within the body of a when command.
stop -noupdate Same as -update, but does not update Sun WorkShopTM Debugging displays.
stop at line Stop execution at the line. See also Breaking at a Location.
stop in function Stop execution when function is called. See also Breaking in a Function.
stop inclass classname C++ only: set breakpoints on all member functions of a class/struct/union or template class. See also Setting an In Class Breakpoint.
stop inmember name C++ only: set breakpoints on all member functions name. See also Setting an In Member Breakpoint.
stop infunction name C++ only: set breakpoints on all non-member functions name.

where:

line is the number of a source code line.

function is the name of a function.

classname is the name of a C++ class, struct, union, or template class.

name is the name of a C++ function.

See also stopi Command for setting a machine-level breakpoint.

For a list and the syntax of all events see Event Specification and Event Specification Modifiers.

For a general discussion of event management commands see Events.