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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d6413a22d4aaecda X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: Re: Program identification Date: 1996/08/31 Message-ID: <508oqs$4jv@news2.delphi.com>#1/1 X-Deja-AN: 177601734 organization: Delphi Internet Services Corporation newsgroups: comp.lang.ada Date: 1996-08-31T00:00:00+00:00 List-Id: >P'Identity which returns a string, P is a program unit If I understand what you want, how about Ada.Command_Line.Command_Name >P'Location which returns a string, P is a program unit and the string would >contain the current line number in the source code, or maybe even the previous >line number (for exception processing). Does Ada.Exceptions.Exception_Information do what you want? with ada.exceptions; with text_io; procedure test is bang:exception; procedure badguy is begin raise bang; end badguy; begin badguy; exception when oops:bang => text_io.put("egad:" & ada.exceptions.exception_information(oops) & ", whew"); end test; produces: egad:TEST.BANG On Line Number 8 In TEST.BADGUY Called from line number 12 In TEST , whew