From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: unload_datafile( ) freezes - please help :( Date: Thu, 17 Feb 2000 10:26:52 +0200 Organization: NetVision Israel Lines: 35 Message-ID: References: <7idlasg6csd38ifjirfp3rgl8ah0p26ufj AT 4ax DOT com> NNTP-Posting-Host: 199.203.121.2 Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 950776190 1812 199.203.121.2 (17 Feb 2000 08:29:50 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 17 Feb 2000 08:29:50 GMT X-Sender: eliz AT is In-Reply-To: <7idlasg6csd38ifjirfp3rgl8ah0p26ufj@4ax.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 16 Feb 2000, Damian Yerrick wrote: > On Wed, 16 Feb 2000 13:12:10 +0200 (IST), Eli Zaretskii > wrote: > > >On Wed, 16 Feb 2000 Riddler02 AT aol DOT com wrote: > > > >> Shutting down Allegro > >> Exiting due to signal SIGINT > >> INTR key Pressed at eib=000339d7 > >> > >> which is not too much help at all. > > > >Try pressing Ctrl-BREAK instead, and it should produce a regsiter dump > >and a stack traceback. Post that message here, and somebody might be > >able to glean something useful from that. > > Allegro catches Ctrl+Break in its keyboard handler. Does it gobble Ctrl-BREAK without a trace? It obviously doesn't do that with Ctrl-C (see above). If Ctrl-BREAK gets the same treatment as Ctrl-C does, you will see the full traceback instead of just "INTR key Pressed at eip=". If Allegro does cause Ctrl-BREAK disappear without a trace, I'd say that's a misfeature: the fact that Ctrl-BREAK generates a full traceback is a valuable feature, designed just for such cases where a program gets stuck in an endless loop. Losing it is IMHO a Bad Idea: it makes debugging harder. (FWIW, generation of SIGINT given Ctrl-C or Ctrl-BREAK is done by the keyboard handler installed by the stock DJGPP startup code. So a keyboard handler doesn't necessarily contradict proper treatment of Ctrl-BREAK.)