mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_SITL: find dumpstack when run from vehicle subdirectory
This commit is contained in:
parent
bd688ef412
commit
59c02816b8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue