srsLTE/lib/include/srsran/common/crash_handler.h

34 lines
655 B
C
Raw Normal View History

/**
*
* \section COPYRIGHT
*
2021-03-19 03:45:56 -07:00
* Copyright 2013-2021 Software Radio Systems Limited
*
* 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.
*
*/
2020-03-16 03:28:27 -07:00
/**
* @file crash_handler.h
* @brief Common handler to catch segfaults and write backtrace to file.
*/
2021-03-19 03:45:56 -07:00
#ifndef SRSRAN_CRASH_HANDLER_H
#define SRSRAN_CRASH_HANDLER_H
2021-03-19 03:45:56 -07:00
#include "srsran/config.h"
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
2021-03-19 03:45:56 -07:00
void srsran_debug_handle_crash(int argc, char** argv);
#ifdef __cplusplus
}
#endif // __cplusplus
2021-03-19 03:45:56 -07:00
#endif // SRSRAN_CRASH_HANDLER_H