c, lc, and ca subcommands

The c, lc and ca subcommands clear breakpoints.

Note: This subcommand is only available within the KDB kernel debugger. It is not included in the kdb command.

Format

c [slot | [-p | -v] Address]

ca

lc [slot | [-p | -v] Address [ctx]]

Parameters

Item Description
-p Indicates that the breakpoint address is a physical or real address.
-v Indicates that the breakpoint address is an effective or virtual address.
slot Specifies the slot number of the breakpoint. This parameter must be a decimal value.
Address Specifies the address of the breakpoint. This may either be a physical or virtual address. Symbols, hexadecimal values, or hexadecimal expressions can be used to specify the address.
ctx Specifies the context to be cleared for a local break. The context may either be a CPU or thread specification.

The ca subcommand erases all breakpoints. The c and lc subcommands erase only the specified breakpoint. The c subcommand clears all contexts for a specified breakpoint. The lc subcommand can be used to clear a single context for a breakpoint. If a specific context is not specified, the current context is used to determine which local breakpoint context to remove.

By default, the KDB kernel debugger chooses the current state of the machine. If the subcommand is entered before VMM initialization, the address is the physical or real address. If the subcommand is entered after VMM initialization, the address is the effective or virtual address.

Note: Slot numbers are not fixed. To clear slot 1 and slot 2 type c 2; c 1 or type c 1; c 1. Do not enter c 1; c 2.

Other

ccl

lclcl

Examples

The following is an example of how to use the c and the ca subcommands:

   KDB(1)> b  //list breakpoints
   0:      .halt_display+000000 (sid:00000000) permanent & global
   1:      .v_exception+000000 (sid:00000000) permanent & global
   2:      .v_loghalt+000000 (sid:00000000) permanent & global
   3:      .p_slih+000000 (sid:00000000)  trace {hit: 0}
   KDB(1)> c 2  //clear breakpoint slot 2
   0:      .halt_display+000000 (sid:00000000) permanent & global
   1:      .v_exception+000000 (sid:00000000) permanent & global
   2:      .p_slih+000000 (sid:00000000)  trace {hit: 0}
   KDB(1)> c v_exception  //clear breakpoint set on v_exception
   0:      .halt_display+000000 (sid:00000000) permanent & global
   1:      .p_slih+000000 (sid:00000000)  trace {hit: 0}
   KDB(1)> ca  //clear all breakpoints
   0:      .p_slih+000000 (sid:00000000)  trace {hit: 0}