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-Thread: a07f3367d7,995653e833a2d91c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!fdn.fr!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Date: Tue, 20 Oct 2009 20:23:15 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: With Exceptions Disabled On Windows, How Can I Determine Where A Software Interrupt Occurs References: <7091f995-dd7e-4442-8ca5-158b83e50bec@x5g2000prf.googlegroups.com> In-Reply-To: <7091f995-dd7e-4442-8ca5-158b83e50bec@x5g2000prf.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4ade0003$0$966$ba4acef3@news.orange.fr> NNTP-Posting-Date: 20 Oct 2009 20:22:59 CEST NNTP-Posting-Host: 83.199.38.169 X-Trace: 1256062979 news.orange.fr 966 83.199.38.169:9133 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:8753 Date: 2009-10-20T20:22:59+02:00 List-Id: Le 20/10/2009 20:01, ChristopherL a �crit : > I'm looking for a compilable/working example on how to do this. For > example code to determine where a divide by zero occurs etc. With GNAT? Nothing, you should get something like this when running your application: raised CONSTRAINT_ERROR : buf.adb:12 divide by zero > If I can't get the code what can you tell me? To have full backtrace and also check for overflow you should compile your application with -gnato and pass -E on the binder: $ gnatmake prog -cargs -gnato -bargs -E Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B