AP_HAL_SITL: find dumpstack when run from vehicle subdirectory

This commit is contained in:
Peter Barker 2020-04-20 13:02:04 +10:00 committed by Peter Barker
parent bd688ef412
commit 59c02816b8
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ void dump_stack_trace()
const char *paths[] {
"Tools/scripts/dumpstack.sh",
"APM/Tools/scripts/dumpstack.sh", // for autotest server
"../Tools/scripts/dumpstack.sh", // when run from e.g. ArduCopter subdirectory
};
for (uint8_t i=0; i<ARRAY_SIZE(paths); i++) {
if (::stat(paths[i], &statbuf) != -1) {