diff --git a/libraries/AP_HAL_SITL/system.cpp b/libraries/AP_HAL_SITL/system.cpp index 3ea3aecaae..6e82224008 100644 --- a/libraries/AP_HAL_SITL/system.cpp +++ b/libraries/AP_HAL_SITL/system.cpp @@ -35,6 +35,8 @@ void panic(const char *errormsg, ...) va_end(ap); printf("\n"); + dump_stack_trace(); + if (getenv("SITL_PANIC_EXIT")) { // this is used on the autotest server to prevent us waiting // 10 hours for a timeout