X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Gerrit van Niekerk" Organization: GPvNO To: djgpp AT delorie DOT com Date: Thu, 16 Aug 2007 00:06:39 +0200 MIME-Version: 1.0 Subject: kbhit() not working when debugging Message-ID: <46C3950F.4931.47ADF6D@gerritvn.gpvno.co.za> X-mailer: Pegasus Mail for Windows (4.41) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Reply-To: djgpp AT delorie DOT com I have a DJGPP program executing a fairly long loop containing kbhit() to check for keyboard input. When executing normally, it works fine, but as soon as the program is invoked using GDB (version 6.1.1), the kbhit() never returns anything but 0 when using CWSDPMI under ROM-DOS. This is the case even if just running the program without setting any breakpoints or watchpoints. GDB works fine in a DOS-BOX in WinXP. I have tried both DJGPP 2.03 and 2.04 with the same result. Any help will be appreciated. -- Gerrit van Niekerk GP van Niekerk Ondernemings BK Roosstraat 211, Meyerspark, 0184, South Africa Tel: +27(12)8036501 Fax SA: 0866 413 555 Cell: +27(73)6891370 Fax Int'l: +1(206)2034139 Email: gerritvn AT gpvno DOT co DOT za Web: http://www.gpvno.co.za