Stopping the debugger when a NaN floating point number is produced

You could enable floating point exceptions – see glibc Control Functions – then you’ll get a SIGFPE when your NaN value is produced

Leave a Comment