comp.lang.ada
 help / color / mirror / Atom feed
From: tmcclory@wright.EDU (Tom McClory)
Subject: Novice Questions on Ada Exceptions
Date: 21 Aug 89 01:22:13 GMT	[thread overview]
Message-ID: <620@thor.wright.EDU> (raw)


I am attempting to port the Ada Test an Analysis Tools package, 
(contributed by Intermetrics to the Ada Repository) to the UNIX 
operating system using the Verdix Ada Compiler (release 5.4).  
The package compiled with no obvious errors, and what appear 
to be minor warnings.  However, the program fails during 
operation with the following exception message:

** MAIN PROGRAM ABANDONED -- EXCEPTION "program_error" RAISED

The VADS debugger sheds a little more light on this with the
output:

RM 11.3(3): RAISE statement reraised exception

This leads to several questions . . .

1) Does anyone have experience porting/using this "Ada Test
and Analysis Tools" package from the Ada Repository?  Are there 
any configuration issues I may have missed?  The changes I made 
were to define a type "long float" and to fix a few typographical 
errors (missing spaces) that may have been introduced during upload.

2) A more general question . . . what are typical causes for 
"PROGRAM_ERROR" exceptions?  More specifically, what might be causing
this error?  The text book I'm using (_Understanding Ada_, by 
Bray & Pokrass, 1985) mentions only "leaving a function without 
executing a return statement."  (Won't the compiler catch these?)

3) Even more general . . . what are good strategies for tracking the
source of exceptions in large programs you personally didn't write?
The behavior of the VADS debugger during exception handling seems 
shaky (I get warning messages about loosing track of pointers), 
so I don't trust the information I've gotten.  Neither the error 
message, nor the debugger, accurately pinpoint the source of the 
exception.  Rather, the debugger states "exception raised xxx 
instructions beyond the statement shown", which is the last 
statement in the last block of whatever file happened to be displayed 
when the exception triggered.  

Any suggestions are welcomed.  Thanks in advance.

             reply	other threads:[~1989-08-21  1:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-08-21  1:22 Tom McClory [this message]
1989-08-23 12:53 ` Novice Questions on Ada Exceptions stt
1989-08-30 10:00   ` Pragma ELABORATE (was: Re: Novice Questions on Ada Exceptions) adh
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox