added /KDNOECHO parameter to disable serial echo by default in kdgb
authorThomas Bluemel <thomas@reactsoft.com>
Tue, 24 Feb 2004 21:25:41 +0000 (21:25 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Tue, 24 Feb 2004 21:25:41 +0000 (21:25 +0000)
svn path=/trunk/; revision=8355

reactos/ntoskrnl/dbg/kdb.c
reactos/ntoskrnl/include/internal/kd.h
reactos/ntoskrnl/kd/kdebug.c

index 4e5fb14..1b95b17 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: kdb.c,v 1.17 2004/01/17 17:13:13 arty Exp $
+/* $Id: kdb.c,v 1.18 2004/02/24 21:25:40 weiden Exp $
  *
  * PROJECT:         ReactOS kernel
  * FILE:            ntoskrnl/dbg/kdb.c
@@ -206,7 +206,9 @@ KdbGetCommand(PCH Buffer)
 {
   CHAR Key;
   PCH Orig = Buffer;
-
+  
+  KbdEchoOn = !((KdDebugState & KD_DEBUG_KDNOECHO) != 0);
+  
   for (;;)
     {
       if (KdDebugState & KD_DEBUG_KDSERIAL)
index c580e42..dd0112f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: kd.h,v 1.22 2004/01/17 17:13:13 arty Exp $
+/* $Id: kd.h,v 1.23 2004/02/24 21:25:41 weiden Exp $
  *
  * kernel debugger prototypes
  */
@@ -19,6 +19,7 @@
 #define KD_DEBUG_MDA            0x40
 #define KD_DEBUG_KDB            0x80
 #define KD_DEBUG_KDSERIAL       0x100
+#define KD_DEBUG_KDNOECHO       0x200
 
 extern ULONG KdDebugState;
 
index be7cd40..67cd357 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: kdebug.c,v 1.50 2004/01/05 14:28:20 weiden Exp $
+/* $Id: kdebug.c,v 1.51 2004/02/24 21:25:41 weiden Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -160,6 +160,12 @@ KdInitSystem(ULONG Reserved,
          KdDebuggerEnabled = TRUE;
          KdDebugState |= KD_DEBUG_SERIAL | KD_DEBUG_KDSERIAL;
         }
+      else if (!_strnicmp(p2, "KDNOECHO", 8))
+        {
+         p2 += 8;
+         KdDebuggerEnabled = TRUE;
+         KdDebugState |= KD_DEBUG_KDNOECHO;
+        }
       else if (!_strnicmp(p2, "DEBUG", 5))
        {
          p2 += 5;