Controlling the System From the Debugging Console

Having set up the Kernel Debugger for a Local or Remote debug session the system is ready to be controlled from the debugging console. The console is used in two modes, which for convenience we refer to as:

In Monitor mode the console acts merely as a output device for displaying diagnostic messages from the debug kernel and debug versions any other of system modules that write messages to the debugger's COM port. In this mode it is not possible to enter Kernel Debugger commands without having first switched to command mode. In monitor mode the system runs more or less as a retail system except for the performance overheads imparted by the additional diagnostic code.

Monitor mode is in effect initially unless a KDB.INI file is defined.

The console switches to monitor mode after G command is executed.

In Command mode normal system execution is suspended. The debug component of the kernel monitors the debugging console for command input and indicates this with using one of the following command prompts:

>

# - ## --

In addition to these prompts the Kernel Debugger also uses a data prompt when a commands require additional input. This is signified by a single colon prompt :. Commands such as R and E may use a data prompt.

Command mode is entered when one of the following events occur:

A fatal exception while executing in ring 0

An Internal Processing Error (IPE) occurs. A sticky breakpoint fires An unhandled non-maskable interrupt (NMI). An INT 3 instruction is executed The user enters Ctrl-C from the debugging console. The user holds down the r-key from the debugging console at system initialisation time. The holds down the p-key at the debugging console at system initialisation time. The user holds down the Space-bar from the debugging console at system initialisation time. The KDB.INI file is processed.


[Back: Troubleshooting]
[Next: Controlling Output to the Debugging Console]