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=ham 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!c03.atl99!c01.usenetserver.com!news.usenetserver.com!elnk-atl-nf1!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: mheaney@MHEANEYX200 Newsgroups: comp.lang.ada Subject: Re: How to debug? References: From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 06 May 2004 12:41:18 GMT NNTP-Posting-Host: 64.185.133.124 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.atl.earthlink.net 1083847278 64.185.133.124 (Thu, 06 May 2004 05:41:18 PDT) NNTP-Posting-Date: Thu, 06 May 2004 05:41:18 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: controlnews3.google.com comp.lang.ada:316 Date: 2004-05-06T12:41:18+00:00 List-Id: Marius Amado Alves writes: > 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? > > I'm on Windows XP, with GNAT 3.15p. I tried GVD and gdb to no avail > (yes, compiled with the -g option). Would it work on Linux? I find the best way is to run gdb from inside emacs. That works on both Windows and GNU/Linux. Just break on an exception, and then get a backtrace when the exception is raised. -Matt