- /* Enable the kernel debugger */
- KdDebuggerNotPresent = FALSE;
- KdDebuggerEnabled = TRUE;
+ /* Check if we have a command line */
+ CommandLine = LoaderBlock->LoadOptions;
+ if (CommandLine)
+ {
+ /* Upcase it */
+ _strupr(CommandLine);
+
+ /* XXX Check for settings that we support */
+ if (strstr(CommandLine, "NODEBUG")) KdDebuggerEnabled = FALSE;
+ else if (strstr(CommandLine, "CRASHDEBUG")) KdDebuggerEnabled = FALSE;
+ else if (strstr(CommandLine, "DEBUG"))
+ {
+ /* Enable the kernel debugger */
+ KdDebuggerNotPresent = FALSE;
+ KdDebuggerEnabled = TRUE;