delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/01/09:06:46

Date: Sun, 1 Jun 1997 16:03:15 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Andrei 'old-boy' Ellman" <ellman AT xs4all DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: Floating Point registers andf crashes.
In-Reply-To: <338D8AC1.E83@xs4all.nl>
Message-ID: <Pine.SUN.3.91.970601160250.24182B@is>
MIME-Version: 1.0

On Thu, 29 May 1997, Andrei 'old-boy' Ellman wrote:

> Whenever a DJGPP program crashes, it prints out the contents of the
> registers. Is it somehow possible to get it to dump the contents of the
> FPU registers as well? Also, it would be nice if whenever my program
> crashed with a SIGFPE, it would be more specific as to what caused the
> FPE (Register-stack full/empty, underlow, overflow, divide by zero,
> etc.).

Install a handler for the signal SIGFPE and inside that handler
examine the FPU status word (see `_status87' library function).  If
you need the FPU stack, just throw in a bit of inline assembly.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019