Patch by tinus_ to fix a persistent problem with kdbg. Fixes the y umlaut

bug.

svn path=/trunk/; revision=14601
This commit is contained in:
Art Yerkes
2005-04-12 23:27:59 +00:00
parent d91b173cb3
commit abe286b572
+3 -1
View File
@@ -1969,6 +1969,7 @@ KdbpReadCommand(
if (KdDebugState & KD_DEBUG_KDSERIAL)
{
Key = (NextKey == '\0') ? KdbpGetCharSerial() : NextKey;
NextKey = '\0';
ScanCode = 0;
if (Key == KEY_ESC) /* ESC */
{
@@ -1996,6 +1997,7 @@ KdbpReadCommand(
{
ScanCode = 0;
Key = (NextKey == '\0') ? KdbpGetCharKeyboard(&ScanCode) : NextKey;
NextKey = '\0';
}
if ((Buffer - Orig) >= (Size - 1))
@@ -2014,7 +2016,7 @@ KdbpReadCommand(
NextKey = KdbpTryGetCharSerial(5);
else
NextKey = KdbpTryGetCharKeyboard(&ScanCode, 5);
if (NextKey == '\n')
if (NextKey == '\n' || NextKey == -1) /* \n or no response at all */
NextKey = '\0';
DbgPrint("\n");
/*