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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,11a62e323672426b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-13 04:06:00 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: okellogg@freenet.de (Oliver Kellogg) Newsgroups: comp.lang.ada Subject: Re: GNAT bending signal handlers Date: 13 May 2003 04:05:59 -0700 Organization: http://groups.google.com/ Message-ID: <6a6390b8.0305130305.13dfc423@posting.google.com> References: <6a6390b8.0305120129.24683c2b@posting.google.com> <3EBFDAB9.441F858D@raytheon.com> NNTP-Posting-Host: 53.122.197.194 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1052823959 6540 127.0.0.1 (13 May 2003 11:05:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 May 2003 11:05:59 GMT Xref: archiver1.google.com comp.lang.ada:37270 Date: 2003-05-13T11:05:59+00:00 List-Id: Mark Johnson wrote in message news:<3EBFDAB9.441F858D@raytheon.com>... > > I suggest a look at the "super secret" GNAT Reference Manual for this > answer. Look for Pragma Interrupt_State (or simply search for "signal") > to see why various signals are required to implement Ada exceptions. Hm, I can't find anything on a pragma Interrupt_State (looked in gnat-3.15p-unx-docs as well as http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/gnat_rm.texi?rev=1.12&content-type=text/x-cvsweb-markup , also searched for "signal".) Anyway, I tried adding the following at the start of the main program: System.Interrupt_Management.Operations.Install_Default_Action (System.Interrupt_Management.Interrupt_ID (System.OS_Interface.SIGSEGV)); but it doesn't change the behavior, apparently because System.Interrupt_Management.Reserve (System.OS_Interface.SIGSEGV) = True (BTW, this is with RedHat 8.0 and its standard gcc suite, i.e. gnat-3.2.) --Oliver