AP_HAL_SITL: update search for dumpstack.sh
This commit is contained in:
parent
1d8a9ab556
commit
95ee01082f
@ -49,11 +49,11 @@ void panic(const char *errormsg, ...)
|
||||
void dump_stack_trace()
|
||||
{
|
||||
// find dumpstack command:
|
||||
const char *dumpstack = "dumpstack"; // if we can't find it trust in PATH
|
||||
const char *dumpstack = "dumpstack.sh"; // if we can't find it trust in PATH
|
||||
struct stat statbuf;
|
||||
const char *paths[] {
|
||||
"Tools/scripts/dumpstack",
|
||||
"APM/Tools/scripts/dumpstack", // for autotest server
|
||||
"Tools/scripts/dumpstack.sh",
|
||||
"APM/Tools/scripts/dumpstack.sh", // for autotest server
|
||||
};
|
||||
for (uint8_t i=0; i<ARRAY_SIZE(paths); i++) {
|
||||
if (::stat(paths[i], &statbuf) != -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user