def is_func_fcatalog(func_addr): """ Have we obtained the name for this function from fcatalog server? We know this by the name of the function. """ logger.debug('is_func_fcatalog {}'.format(func_addr)) func_name = GetFunctionName(func_addr) return func_name.startswith(FCATALOG_FUNC_NAME_PREFIX)
def is_func_fcatalog(func_addr): """ Have we obtained the name for this function from fcatalog server? We know this by the name of the function. """ logger.debug('is_func_fcatalog {}'.format(func_addr)) func_name = GetFunctionName(func_addr) return func_name.startswith(FCATALOG_FUNC_NAME_PREFIX)
def _is_func_named(self,func_addr): """ Check if a function was ever named by the user. """ logger.debug('_is_func_named {}'.format(func_addr)) func_name = GetFunctionName(func_addr) # Avoid functions like sub_409f498: if func_name.startswith('sub_'): return False # If exclude_pattern was provided, make sure that the function # name does not match it: if self._exclude_pattern is not None: mt = re.match(self._exclude_pattern,func_name) if mt is not None: return False # Avoid reindexing FCATALOG functions: if is_func_fcatalog(func_addr): return False return True
def _is_func_named(self,func_addr): """ Check if a function was ever named by the user. """ logger.debug('_is_func_named {}'.format(func_addr)) func_name = GetFunctionName(func_addr) # Avoid functions like sub_409f498: if func_name.startswith('sub_'): return False # If exclude_pattern was provided, make sure that the function # name does not match it: if self._exclude_pattern is not None: mt = re.match(self._exclude_pattern,func_name) if mt is not None: return False # Avoid reindexing FCATALOG functions: if is_func_fcatalog(func_addr): return False return True