From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bd74d3b6dc2117eb,start X-Google-Attributes: gidfee84,public From: M.D.Poole@ukc.ac.uk (mdp2) Subject: Writing trap-handling code to diagnose source of fp errors Date: 1997/10/01 Message-ID: <196@mint.ukc.ac.uk>#1/1 X-Deja-AN: 277055258 Sender: M.D.Poole@ukc.ac.uk Distribution: world Organization: University of Kent at Canterbury, UK. Newsgroups: comp.unix.osf.osf1 I want to write a floating-point error handler that can tell me which floating point operation has signalled the error. In a trap-handler how can I get hold of the value of the program-counter at the point where the trap was signalled? -- Michael Poole, Research Fellow, Computing Laboratory, University of Kent, Canterbury, Kent, CT2 7NF, England Tel:01227 827553