1 /* 2 * Copyright 2018 Oticon A/S 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef BS_UTIL_SYMBOLS_H 7 #define BS_UTIL_SYMBOLS_H 8 9 #ifdef __cplusplus 10 extern "C"{ 11 #endif 12 13 #ifndef _BS_TSYMBOLS_TRACE 14 #define _BS_TSYMBOLS_TRACE 1 15 #endif 16 17 #include <stddef.h> 18 19 #if (_BS_TSYMBOLS_TRACE ) 20 void bs_read_function_names_from_Tsymbols(const char *probable_binary_name); 21 #else 22 #define bs_read_function_names_from_Tsymbols(a) 23 #endif 24 25 int bs_could_be_symbol(uint32_t ptr); 26 void bs_snprint_symbol_name_from_Tsymbols(void *fptr, char* ptr, size_t n); 27 28 //Internal definitions to Util library: 29 void bs_clear_Tsymbols(); 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #endif 36