From: kst@thomsoft.com (Keith Thompson)
Subject: Re: debugging GNAT programs
Date: Thu, 2 Mar 1995 22:23:52 GMT
Date: 1995-03-02T22:23:52+00:00 [thread overview]
Message-ID: <D4u3Js.G20@thomsoft.com> (raw)
In-Reply-To: 1995Mar2.095243.14051@sei.cmu.edu
In <1995Mar2.095243.14051@sei.cmu.edu> marc@sei.cmu.edu (Marc Graham) writes:
> To those of you using GNAT, do you have any hints about debugging?
> Particularly "unhandled exceptions" (currently, GNAT just prints the
> message: terminated due to unhandled exception (or something like
> that) and, since it terminated, gdb can't find where the exception was
> raised. (Anyway, gdb debugs the generated c code, not the Ada
> code. Which makes it pretty useless.)
First of all, there is no generated C code. The name GNAT (GNU Ada
Translator) is perhaps slightly misleading, but it's a true compiler
that happens to share a backend with several other GNU compilers.
I found this in "using GDB" gnatinfo.txt, which is part of the GNAT
distribution:
> Exceptions can be caught by breaking in the "__gnat_raise" routine and then
> doing a "bt" or "where" command.
(Speaking for nobody as always.)
--
Keith Thompson (The_Other_Keith) kst@thomsoft.com (kst@alsys.com still works)
TeleSoft^H^H^H^H^H^H^H^H Alsys^H^H^H^H^H Thomson Software Products
10251 Vista Sorrento Parkway, Suite 300, San Diego, CA, USA, 92121-2718
That's Keith Thompson *with* a 'p', Thomson Software Products *without* a 'p'.
next prev parent reply other threads:[~1995-03-02 22:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-02 14:52 debugging GNAT programs Marc Graham
1995-03-02 16:52 ` Robert A Duff
1995-03-03 2:47 ` Pug 156
1995-03-04 4:26 ` Tom Griest
1995-03-05 19:20 ` Bernard Banner
1995-03-06 19:34 ` Tom Griest
1995-03-02 22:23 ` Keith Thompson [this message]
1995-03-03 22:33 ` Robert S. White
1995-03-05 15:42 ` Robert Dewar
1995-03-05 15:52 ` Robert Dewar
1995-03-06 0:38 ` kkrieser
1995-03-06 15:14 ` Robert S. White
1995-03-03 4:57 ` Vladimir Vukicevic
1995-03-04 14:07 ` Cyrille Comar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox