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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: With Exceptions Disabled On Windows, How Can I Determine Where A Software Interrupt Occurs Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <7091f995-dd7e-4442-8ca5-158b83e50bec@x5g2000prf.googlegroups.com> <4ade0003$0$966$ba4acef3@news.orange.fr> Date: Tue, 20 Oct 2009 20:37:40 +0200 Message-ID: NNTP-Posting-Date: 20 Oct 2009 20:37:36 CEST NNTP-Posting-Host: 923abfd6.newsspool4.arcor-online.net X-Trace: DXC=[ On Tue, 20 Oct 2009 20:23:15 +0200, Pascal Obry wrote: > 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 Though the subject's text could be read as if the OP meant the case when the corresponding check were suppressed. I.e.,.how do we detect something that does not occur... (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de