🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7503

Diagnosing IEEE exceptions in f77 programs

#7503
From: QQ68
Date: Thu, 18 Apr 1991 15:30
23 lines
1914 bytes
Can anyone point me in the direction of information or example code for an
IEEE floating-point exception handler for a FORTRAN program ? The SUN f77
manual gives only a very simple example of an exception handler routine --
it just calls 'abort()' to produce a core dump. I know I can use
dbx/dbxtool to examine the core afterwards, but I'd prefer that the
exception handler should print out the source-file line number at which
the exception occurred, and perhaps (if it's not a fatal problem) continue
running the program.

I need to know the specifications of the arguments passed to the exception
handler function (I can guess the first two, it's the third argument, a
five-element integer array, which puzzles me) and also how to extract
information about source file line numbers and the locations/types/sizes
of my program's variables from the symbolic information included in the
executable binary as a result of compiling my code with the -g option.  Is
this information published anywhere, or are mere mortals only supposed to
use a debugger to do this kind of thing :-)

Any advice or example programs would be gratefully received ! Thanks in
advance. Please could you email your replies to me at the address below --
I can only read Usenet on rare occasions.

-- David Harper (someone who likes cats) --
Technical Details
Message-ID: <2542@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: QQ68@liverpool.ac.uk (QQ68)
Newsgroups: comp.sys.sun
Subject: Diagnosing IEEE exceptions in f77 programs
Keywords: Miscellaneous
Message-ID: <2542@brchh104.bnr.ca>
Date: 18 Apr 91 15:30:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 23
Approved: Sun-Spots@rice.edu
X-Original-Date: Thursday, 18 Apr 1991 07:47:27 BST
X-Sun-Spots-Digest: Volume 10, Issue 86, message 3
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu