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.4 required=5.0 tests=BAYES_00,THIS_AD autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d202b19275ae293 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Date: Wed, 25 May 2005 11:53:48 +0200 From: Manuel Collado User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: es-ar, es, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gnat: symbolic traceback on exceptions References: <4291b4ed@news.upm.es> <42930a9b@news.upm.es> <1117006925.684308.317230@f14g2000cwb.googlegroups.com> In-Reply-To: <1117006925.684308.317230@f14g2000cwb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 138.100.10.20 Message-ID: <42944b2d@news.upm.es> X-Trace: 25 May 2005 11:53:49 +0100, 138.100.10.20 Path: g2news1.google.com!news3.google.com!news2.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!irazu.switch.ch!switch.ch!news.rediris.es!news.upm.es!138.100.10.20 Xref: g2news1.google.com comp.lang.ada:11148 Date: 2005-05-25T11:53:48+02:00 List-Id: gautier_niouzes@hotmail.com escribi�: > Manuel Collado: > >>>Did you try it with AdaGide with switch "Trace exception" set? Compile F3, >>>run F4. >> >>No, I din't. But I've done it now without success. It seems that the >>"Trace exceptions" option lets AdaGide to run the program through an >>"AD" utility that interfaces with GDB. In my machine AD itself seems to >>crash. Example: > > (...) > > This AD should disappear one day - I don't know if it even sometimes > works... Looking at the sources I see that your original AD was written for MS-DOS, and that AdaGide contains a modified version for WinNT. But even the adapted sources have not been updated since 1999. > > The solution to your problem ("the GNAT 3.13+ way") is, generically > written: ...[code snipped]... Yes, this is an interesting alternative. > > Of course you can do it without the generic wrapper, just paste > the exception part at the end of your main procedure. I've put the message reporting code in a separate subroutine, called from the exception part of the main procedure. > > The switches mentioned in the above code correspond to the compiler > switches "debug info" and "trace-back" in the "Debugging" group > of AdaGIDE's "Project settings" -> "Debug/Release settings". Your post has alerted me about a new version of AdaGide. I was using v7.0, thas has a different set of options. After installing v7.3 I see a checkbox that enables/disables the usage of AD. Thanks, a lot. -- To reply by e-mail, please remove the extra dot in the given address: m.collado -> mcollado