Date: Tue, 15 Sep 1998 09:33:01 +0300 (IDT) From: Eli Zaretskii To: Gautier DOT DeMontmollin AT maths DOT unine DOT ch cc: djgpp AT delorie DOT com Subject: Re: Trace-back, symify, Ada exceptions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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");