AP_HAL: generate a core file for a given PID

Similarly to dumpstack.sh, uses gdb to dump a core file
This commit is contained in:
Peter Barker 2021-07-06 15:32:24 +10:00 committed by Peter Barker
parent a5f2d12edc
commit 2f7603e08e
2 changed files with 5 additions and 0 deletions

View File

@ -9,3 +9,7 @@ void WEAK AP_HAL::dump_stack_trace()
{
// stack dump not available on this platform
}
void WEAK AP_HAL::dump_core_file()
{
// core dump not available on this platform
}

View File

@ -25,5 +25,6 @@ uint64_t native_micros64();
uint64_t native_millis64();
void dump_stack_trace();
void dump_core_file();
} // namespace AP_HAL