From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a05:6214:1428:: with SMTP id o8mr6440778qvx.87.1580412471548; Thu, 30 Jan 2020 11:27:51 -0800 (PST) X-Received: by 2002:aca:6244:: with SMTP id w65mr3962989oib.113.1580412471210; Thu, 30 Jan 2020 11:27:51 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 30 Jan 2020 11:27:50 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2a02:120b:2c67:3370:d4be:c3ef:62:9e6e; posting-account=DQbqYQoAAACn8hHn2LmG2aF7Mhbxl_Lf NNTP-Posting-Host: 2a02:120b:2c67:3370:d4be:c3ef:62:9e6e References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Last chance handler on a PC From: ahlan@marriott.org Injection-Date: Thu, 30 Jan 2020 19:27:51 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57989 Date: 2020-01-30T11:27:50-08:00 List-Id: 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