Browse Source

SITL: abort on floating point error

this creates a core file
master
Andrew Tridgell 10 years ago
parent
commit
f04f8e226d
  1. 2
      libraries/AP_HAL_AVR_SITL/SITL_State.cpp

2
libraries/AP_HAL_AVR_SITL/SITL_State.cpp

@ -80,7 +80,7 @@ bool SITL_State::new_rc_input;
void SITL_State::_sig_fpe(int signum) void SITL_State::_sig_fpe(int signum)
{ {
fprintf(stderr, "ERROR: Floating point exception\n"); fprintf(stderr, "ERROR: Floating point exception\n");
exit(1); abort();
} }
void SITL_State::_usage(void) void SITL_State::_usage(void)

Loading…
Cancel
Save