Browse Source

AP_HAL_SITL: dump stack trace as part of panic()

master
Peter Barker 6 years ago committed by Peter Barker
parent
commit
c59dde78c6
  1. 2
      libraries/AP_HAL_SITL/system.cpp

2
libraries/AP_HAL_SITL/system.cpp

@ -35,6 +35,8 @@ void panic(const char *errormsg, ...)
va_end(ap); va_end(ap);
printf("\n"); printf("\n");
dump_stack_trace();
if (getenv("SITL_PANIC_EXIT")) { if (getenv("SITL_PANIC_EXIT")) {
// this is used on the autotest server to prevent us waiting // this is used on the autotest server to prevent us waiting
// 10 hours for a timeout // 10 hours for a timeout

Loading…
Cancel
Save