Date: Wed, 15 May 1996 08:30:12 +0200 (IST) From: Eli Zaretskii To: Jeff Welty Cc: djgpp AT delorie DOT com Subject: Re: How do I get a stack trace after a SIGFPE? In-Reply-To: <199605141734.AA08152@interlock.wdni.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 14 May 1996, Jeff Welty wrote: > Any ideas how I can know which line of code generated the floating > point error? Compile with -g and run the program under GDB. I think GDB will tell you where did the exception happen even if you just run it (without single-stepping or breakpoints), because GDB gets the exceptions of the debuggee. If I'm wrong, you'll have to single-step through the function(s) that you suspect until you find the line that triggers the exception.