User`s guide
72
Chapter 6: Controlling Program Execution
The syntax of the disable command is:
disable item [, item ... ]
Disables the specified breakpoint(s), trace(s), or conditional
command(s). This command has no effect if the item you
specify is already disabled.
For example, to disable the conditional command set in “Listing
Breakpoints, Traces, and Conditional Commands” on page 71 enter:
(dbx) disable 4
If you enter status, you see the following:
(dbx) status
Process 22631: [3] stop in foo
Process 22631: [4] (disabled) trace total in foo
Process 22631: [5] when at “/usr/var/tmp/dbx_examples/
test.c”:60 { print i, j
Enabling Breakpoints, Traces, and Conditional
Commands
The enable command reverses the effects of a disable command: The
breakpoint, trace, or conditional command that you specify is enabled and
once again affects the execution of your program. The syntax of the enable
command is:
enable item [, item ...]
Enables the specified breakpoint(s), trace(s), or conditional
command(s).
For example, to enable the conditional command disabled in “Disabling
Breakpoints, Traces, and Conditional Commands” on page 71, enter:
(dbx) enable 4
Executing the status command shows that the condition command is now
enabled:
(dbx) status
Process 22631: [3] stop in foo
Process 22631: [4] trace total in foo