6.2.6 Deleting breakpoints and watchpoints (delete command)
The delete command deletes breakpoints and watchpoints. The abbreviation for the delete command is d. The following shows the format of the delete command:
delete[ breakpoint-or-watchpoint-number[-breakpoint-or-watchpoint-number]]
You can delete any desired breakpoint or watchpoint by specifying its number in the argument of the delete command. You can use the hyphen (-) to specify a range of numbers. For example, to delete point numbers 1 through 5, specify 1-5. If the argument is omitted, the command deletes all breakpoints and watchpoints.
The following describes the delete command processing.
- When the delete command argument is omitted
-
If at least one breakpoint or watchpoint has been set, the command displays a confirmation message asking whether all breakpoints and watchpoints are to be deleted. To delete all breakpoints and watchpoints, enter y or Y.
If no breakpoint or watchpoint has been set, the command outputs an error message.
- When the delete command argument is specified
-
-
breakpoint-or-watchpoint-number
The command deletes the breakpoint or watchpoint with the specified number. If the specified number does not exist, the command outputs an error message.
-
number-number
The command deletes the breakpoints and watchpoints whose numbers are in the range from the value specified to the left of the hyphen (-) to the value specified to the right of the hyphen. If the specified range contains no breakpoints or watchpoints, the command outputs an error message.
-
Other
The command outputs an error message.
-
- Notes:
-
-
A number must be specified in the argument as 0 or a greater integer. Do not specify a plus sign (+) at the beginning.
-
When a range of numbers is specified and the beginning number is the same as the ending number, the command deletes only the breakpoint or watchpoint with the specified number.
-
When a range of numbers is specified and the ending number is smaller than the beginning number, the command outputs an error message.
-
If a specified number is outside the permitted value range for the int type, the command rounds it to the maximum value for the int type.
-