From 59a2d86f8ef6768192cc7afa4e1f87e933065292 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 21 Jul 2015 21:51:08 +0200 Subject: kern/gdb: fix use of comcngetc * kern/gdb.c (getDebugChar): Fix use of comcngetc, wait is merely a switch, not a timeout. --- kern/gdb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'kern/gdb.c') diff --git a/kern/gdb.c b/kern/gdb.c index 250bf8d8..44658bd2 100644 --- a/kern/gdb.c +++ b/kern/gdb.c @@ -28,10 +28,9 @@ void putDebugChar(int character) /** * getDebugChar gets a character over the serial port * for the GDB stub. Its prototyped in stub-i386.c. - * It uses */ -int getDebugChar() +int getDebugChar() { - return comcngetc(0, 10); + return comcngetc(0, TRUE); } -- cgit v1.2.3