Moved srslte_debug_handle_crash to common/debug.c

This commit is contained in:
Pedro Alvarez 2018-07-09 14:33:50 +01:00
parent 96786e96da
commit 7aaa9a1789
10 changed files with 14 additions and 13 deletions

View File

@ -63,10 +63,10 @@ endif(SRSGUI_FOUND)
if(RF_FOUND)
add_executable(cell_search cell_search.c)
target_link_libraries(cell_search srslte_phy srslte_rf)
target_link_libraries(cell_search srslte_phy srslte_common srslte_rf)
add_executable(cell_measurement cell_measurement.c)
target_link_libraries(cell_measurement srslte_phy srslte_rf)
target_link_libraries(cell_measurement srslte_phy srslte_common srslte_rf)
add_executable(usrp_capture usrp_capture.c)
target_link_libraries(usrp_capture srslte_phy srslte_rf)

View File

@ -40,6 +40,7 @@
#include "srslte/srslte.h"
#include "srslte/phy/rf/rf.h"
#include "srslte/phy/rf/rf_utils.h"
#include "srslte/common/debug.h"
cell_search_cfg_t cell_detect_config = {
SRSLTE_DEFAULT_MAX_FRAMES_PBCH,

View File

@ -33,6 +33,7 @@
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include "srslte/common/debug.h"
#include <srslte/phy/common/phy_common.h>
#include <srslte/phy/phch/pdsch_cfg.h>
#include "srslte/common/gen_mch_tables.h"

View File

@ -37,6 +37,7 @@
#include <pthread.h>
#include <semaphore.h>
#include "srslte/common/gen_mch_tables.h"
#include "srslte/common/debug.h"
#include <srslte/phy/common/phy_common.h>
#include "srslte/phy/io/filesink.h"
#include "srslte/srslte.h"

View File

@ -32,8 +32,8 @@
* Reference:
*****************************************************************************/
#ifndef SRSLTE_DEBUG_H
#define SRSLTE_DEBUG_H
#ifndef SRSLTE_PHY_DEBUG_H
#define SRSLTE_PHY_DEBUG_H
#include <stdio.h>
#include "srslte/config.h"

View File

@ -31,7 +31,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#include <complex.h>
#include <math.h>
@ -49,7 +49,8 @@
#include "srslte/phy/common/sequence.h"
#include "srslte/phy/common/phy_common.h"
#include "srslte/phy/common/phy_logger.h"
#include "srslte/common/debug.h"
#include "srslte/phy/ch_estimation/chest_ul.h"
#include "srslte/phy/ch_estimation/chest_dl.h"
#include "srslte/phy/ch_estimation/refsignal_dl.h"
@ -104,7 +105,7 @@
#include "srslte/phy/phch/regs.h"
#include "srslte/phy/phch/sch.h"
#include "srslte/phy/phch/uci.h"
#include "srslte/phy/ue/ue_sync.h"
#include "srslte/phy/ue/ue_mib.h"
#include "srslte/phy/ue/ue_cell_search.h"

View File

@ -41,6 +41,7 @@ static void crash_handler(int sig) {
void *array[128];
int size;
/* Get all stack traces */
size = backtrace(array, 128);

View File

@ -24,14 +24,8 @@
*
*/
#include <pthread.h>
#include <stdio.h>
#include <execinfo.h>
#include <signal.h>
#include <stdlib.h>
#include "srslte/phy/utils/debug.h"
#include "srslte/version.h"
int srslte_verbose = 0;
int handler_registered = 0;

View File

@ -31,6 +31,7 @@
#include <pthread.h>
#include "srslte/common/config_file.h"
#include "srslte/common/debug.h"
#include <iostream>
#include <string>

View File

@ -38,6 +38,7 @@
#include "srsue/hdr/ue.h"
#include "srslte/common/config_file.h"
#include "srslte/common/debug.h"
#include "srslte/srslte.h"
#include "srsue/hdr/metrics_stdout.h"
#include "srsue/hdr/metrics_csv.h"