2020-11-26 01:25:22 -08:00
|
|
|
/**
|
2018-07-09 05:15:35 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* \section COPYRIGHT
|
2018-07-09 05:15:35 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* Copyright 2013-2020 Software Radio Systems Limited
|
2018-07-09 05:15:35 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* By using this file, you agree to the terms and conditions set
|
|
|
|
* forth in the LICENSE file which can be found at the top level of
|
|
|
|
* the distribution.
|
2018-07-09 05:15:35 -07:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-03-16 03:28:27 -07:00
|
|
|
/**
|
|
|
|
* @file crash_handler.h
|
|
|
|
* @brief Common handler to catch segfaults and write backtrace to file.
|
|
|
|
*/
|
2018-07-09 05:15:35 -07:00
|
|
|
|
2018-07-13 03:57:15 -07:00
|
|
|
#ifndef SRSLTE_CRASH_HANDLER_H
|
|
|
|
#define SRSLTE_CRASH_HANDLER_H
|
2018-07-09 05:15:35 -07:00
|
|
|
|
|
|
|
#include "srslte/config.h"
|
2019-12-16 07:04:22 -08:00
|
|
|
#include <stdio.h>
|
2018-07-09 05:15:35 -07:00
|
|
|
|
2018-07-13 03:57:15 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif // __cplusplus
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
void srslte_debug_handle_crash(int argc, char** argv);
|
2018-07-09 05:15:35 -07:00
|
|
|
|
2018-07-13 03:57:15 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif // __cplusplus
|
2018-07-13 04:06:27 -07:00
|
|
|
#endif // SRSLTE_CRASH_HANDLER_H
|