From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: My INT 1 handler crashes under Windows 95 Date: Wed, 16 Dec 1998 10:18:20 +0200 Organization: NetVision Israel Lines: 11 Message-ID: References: <366e8532 DOT 81397 AT news DOT worldonline DOT nl> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 913796264 4309 199.203.121.2 (16 Dec 1998 08:17:44 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 16 Dec 1998 08:17:44 GMT X-Sender: eliz AT is In-Reply-To: <366e8532.81397@news.worldonline.nl> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 9 Dec 1998 sjoerd DOT s DOT bakker AT tip DOT nl wrote: > The following test-code installs a protected mode INT 1 (single-step) > handler that runs well with CWSDPMI but crashes under Windows 95 with > a registerdump caused by SIGTRAP. INT 1 is not a hardware interrupt in the normal sense. Try installing a signal handler for SIGTRAP instead. You will probably need to make the handler do a longjmp (instead of returning to the caller), to prevent the program from crashing.