comp.lang.ada
 help / color / mirror / Atom feed
* Novice Questions on Ada Exceptions
@ 1989-08-21  1:22 Tom McClory
  1989-08-23 12:53 ` stt
  0 siblings, 1 reply; 3+ messages in thread
From: Tom McClory @ 1989-08-21  1:22 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1989-08-30 10:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1989-08-21  1:22 Novice Questions on Ada Exceptions Tom McClory
1989-08-23 12:53 ` stt
1989-08-30 10:00   ` Pragma ELABORATE (was: Re: Novice Questions on Ada Exceptions) adh

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