Mail Archives: djgpp/1996/05/15/01:36:19
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.
- Raw text -