Date: Sun, 1 Jun 1997 16:03:15 +0300 (IDT) From: Eli Zaretskii To: "Andrei 'old-boy' Ellman" cc: djgpp AT delorie DOT com Subject: Re: Floating Point registers andf crashes. In-Reply-To: <338D8AC1.E83@xs4all.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.