Mail Archives: djgpp/2000/02/17/14:26:36
On Wed, 16 Feb 2000, Damian Yerrick wrote:
> On Wed, 16 Feb 2000 13:12:10 +0200 (IST), Eli Zaretskii
> <eliz AT is DOT elta DOT co DOT il> 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.)
- Raw text -