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.1 required=5.0 tests=BAYES_00,FAKE_REPLY_C, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5845b26b188c214e X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Jerry van Dijk Newsgroups: comp.lang.ada Subject: Re: How to debug? Date: 06 May 2004 16:10:50 +0200 Organization: JerryWare Message-ID: Reply-To: somename@nospam.demon.nl X-No-Archive: : yes User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@supernews.com Xref: controlnews3.google.com comp.lang.ada:319 Date: 2004-05-06T16:10:50+02:00 List-Id: > How do I inspect the call stack (preferably symbolic information i.e. source > code unit name + line number + subprogram names), upon an unhandled > exception occurrence? Maybe you have an installation problem ? If I follow the instructions in chapter 23.13.2.1 (Tracebacks From Exception Occurrences) in the GNAT 3.15p user manual it works: ------------------------------------------------------------------------------- C:\home\work>cat stb.adb with Ada.Text_IO; with GNAT.Traceback.Symbolic; procedure STB is procedure P1 is begin raise Constraint_Error; end P1; procedure P2 is begin P1; end P2; procedure P3 is begin P2; end P3; begin P3; exception when E : others => Ada.Text_IO.Put_Line (GNAT.Traceback.Symbolic.Symbolic_Traceback (E)); end STB; C:\home\work>gnatmake -g stb -bargs -E -largs -lgnat -laddr2line -lintl gcc -c -g stb.adb gnatbind -aO./ -E -I- -x stb.ali gnatlink -g -lgnat -laddr2line -lintl stb.ali C:\home\work>stb 00404F61 in ada.exceptions.process_raise_exception at a-except.adb:1320 004020D7 in <__gnat_rcheck_04> at a-except.adb:592 004015A7 in stb.p1 at stb.adb:8 004015BF in stb.p2 at stb.adb:13 004015D7 in stb.p3 at stb.adb:18 004017F1 in stb at stb.adb:22 004013CF in main at b~stb.adb:168 00401103 in ?? at fake:0 ------------------------------------------------------------------------------- -- -- Jerry van Dijk -- Leiden, Holland