www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/28/22:36:26

From: snarfy AT goodnet DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Problem raising exceptions in tight loops
Date: 27 Nov 1996 16:14:39 GMT
Organization: GoodNet
Lines: 28
Message-ID: <57hpdf$ubu@news.goodnet.com>
NNTP-Posting-Host: goodnet.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

This program will not interrupt with control-C:

main()
{
   while(1)
     {
     }
}


I looked at the assembly output and it turns into:

L2: jmp L4
L4: jmp L2

The interrupts are getting serviced ok, because the numlock light on my
keyboard still turns on and off when I push it.  It's just that the 
SIGINT exception that should get raised isn't getting raised.  
Are there any known problems with the DJGPP exception mechanism?  I'm 
using the exception mechanism extensively in the LWP package and in
some cases it fails (tight while(1) loops).

I'm using the second latest version of DJGPP (with gcc 2.7.2 not 2.7.2.1)
if that helps.

Josh
snarfy AT goodnet DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019