AP_HAL_SITL: dump stack trace as part of panic()

This commit is contained in:
Peter Barker 2019-06-11 12:15:55 +10:00 committed by Peter Barker
parent dd68b14f46
commit c59dde78c6
1 changed files with 2 additions and 0 deletions

View File

@ -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