delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/15/08:20:54

Date: Tue, 15 Sep 1998 09:33:01 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <yaKw9dGPn9Je@nedcu4>
Message-ID: <Pine.SUN.3.91.980915092714.1511B-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019