comp.lang.ada
 help / color / mirror / Atom feed
From: ahlan@marriott.org
Subject: Re: Last chance handler on a PC
Date: Thu, 30 Jan 2020 11:27:50 -0800 (PST)
Date: 2020-01-30T11:27:50-08:00	[thread overview]
Message-ID: <b20abb53-ec76-4dda-acd8-160d580ade31@googlegroups.com> (raw)
In-Reply-To: <c2b3d19c-b238-4411-84a1-3bac76531a6e@googlegroups.com>

Dear Egil,

Very interesting but we want to catch all unhandled exceptions, specifically those raised during package elaboration.

MfG
Ahlan

On Thursday, January 30, 2020 at 10:17:17 AM UTC+1, Egil H H wrote:
> On Thursday, January 30, 2020 at 9:55:42 AM UTC+1, ah...@marriott.org wrote:
> > Hi,
> > 
> > Does anyone know if it is possible to install a last chance handler for a PC program.
> > Ie Write a procedure that gets called when a program issues an unhandled exception
> > If it is possible how do you do it?
> 
> 
> You can use the Termination_Handler in Annex C.7.3 (Added in Ada 2005), provided your compiler/runtime supports it. 
> 
> http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-C-7-3.html
> 
> Example usage is discussed in the Ada 2005 Rationale:
> 
> https://www.adaic.org/resources/add_content/standards/05rat/html/Rat-5-2.html#I1150
> 
> 
> -- 
> ~egilhh

  reply	other threads:[~2020-01-30 19:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-30  8:55 Last chance handler on a PC ahlan
2020-01-30  9:15 ` J-P. Rosen
2020-01-30  9:17 ` Egil H H
2020-01-30 19:27   ` ahlan [this message]
2020-01-31  5:53     ` J-P. Rosen
2020-01-31  7:00       ` Jeffrey R. Carter
2020-01-31  8:51         ` J-P. Rosen
2020-01-30  9:25 ` Dmitry A. Kazakov
2020-01-30 19:10 ` Lucretia
2020-01-30 19:35 ` ahlan
2020-01-30 20:02   ` Jeffrey R. Carter
2020-01-30 20:26     ` Niklas Holsti
2020-01-30 20:51       ` Jeffrey R. Carter
2020-01-30 21:32         ` Niklas Holsti
2020-01-31 11:12       ` Simon Wright
2020-01-31 11:19         ` Simon Wright
2020-01-31 12:30           ` Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox