To stop program execution if a conditional statement evaluates to true, type:
(dbx) stop cond condition |
The program stops executing when the condition occurs.
Keep these points in mind when using the stop cond command:
dbx stops the program at the line after the line that caused the condition to evaluate to true.
The command does not work with multithreaded applications.
For more information on specifying a condition event, see cond condition-expression and stop Command.