Mail Archives: djgpp/1998/09/15/08:20:54
On 14 Sep 1998 Gautier DOT DeMontmollin AT maths DOT unine DOT ch wrote:
> 1) Does symify run under Windows NT
Yes, it does.
> (as it reads the screen data it seems not a trivial question to me) ?
NT doesn't disallow direct screen access by DOS programs.
> 2) How to produce a "clean" breaking signal with a C instruction ?
> The purpose is to make the GNAT Ada exception handler (written in C)
> provoke a "classical" trace-back for unhandled Ada exceptions.
In DJGPP v2.02, this will be easy: just say "raise (SIGABRT);", that's
all. But in v2.01, it isn't possible yet. I use the following snippet
to achieve the same effect. It's a bit awkward (it says "Ctrl-BREAK
pressed", which is untrue), but it does produce a traceback:
signal (SIGINT, SIG_DFL);
__asm__ __volatile__ ("movb $0x1b,%al;call ___djgpp_hw_exception");
- Raw text -