示例#1
0
    def prepare(self):
        """Prepares symbol data sources by extracting mapping from a binary.

    The prepared symbol data sources are stored in a directory.  The directory
    name is stored in |self._prepared_symbol_data_sources_path|.

    Returns:
        True if succeeded.
    """
        LOGGER.info('Preparing symbol mapping...')
        self._prepared_symbol_data_sources_path, used_tempdir = (
            prepare_symbol_info.prepare_symbol_info(
                self._prefix + '.maps',
                output_dir_path=self._prefix + '.symmap',
                alternative_dirs=self._alternative_dirs,
                use_tempdir=True,
                use_source_file_name=True))
        if self._prepared_symbol_data_sources_path:
            LOGGER.info('  Prepared symbol mapping.')
            if used_tempdir:
                LOGGER.warn(
                    '  Using a temporary directory for symbol mapping.')
                LOGGER.warn('  Delete it by yourself.')
                LOGGER.warn(
                    '  Or, move the directory by yourself to use it later.')
            return True
        else:
            LOGGER.warn('  Failed to prepare symbol mapping.')
            return False
示例#2
0
  def prepare(self):
    """Prepares symbol data sources by extracting mapping from a binary.

    The prepared symbol data sources are stored in a directory.  The directory
    name is stored in |self._prepared_symbol_data_sources_path|.

    Returns:
        True if succeeded.
    """
    LOGGER.info('Preparing symbol mapping...')
    self._prepared_symbol_data_sources_path, used_tempdir = (
        prepare_symbol_info.prepare_symbol_info(
            self._prefix + '.maps',
            output_dir_path=self._prefix + '.symmap',
            alternative_dirs=self._alternative_dirs,
            use_tempdir=True,
            use_source_file_name=True))
    if self._prepared_symbol_data_sources_path:
      LOGGER.info('  Prepared symbol mapping.')
      if used_tempdir:
        LOGGER.warn('  Using a temporary directory for symbol mapping.')
        LOGGER.warn('  Delete it by yourself.')
        LOGGER.warn('  Or, move the directory by yourself to use it later.')
      return True
    else:
      LOGGER.warn('  Failed to prepare symbol mapping.')
      return False
示例#3
0
  def prepare(self):
    """Extracts symbol mapping from binaries and prepares it to use.

    The symbol mapping is stored in a directory whose name is stored in
    |self._prepared_symbol_mapping_path|.

    Returns:
        True if succeeded.
    """
    LOGGER.info('Preparing symbol mapping...')
    self._prepared_symbol_mapping_path, used_tempdir = prepare_symbol_info(
        self._prefix + '.maps', self._prefix + '.symmap', True)
    if self._prepared_symbol_mapping_path:
      LOGGER.info('  Prepared symbol mapping.')
      if used_tempdir:
        LOGGER.warn('  Using a temporary directory for symbol mapping.')
        LOGGER.warn('  Delete it by yourself.')
        LOGGER.warn('  Or, move the directory by yourself to use it later.')
      return True
    else:
      LOGGER.warn('  Failed to prepare symbol mapping.')
      return False
示例#4
0
    def prepare(self):
        """Prepares symbol data sources by extracting mapping from a binary.

    The prepared symbol data sources are stored in a directory.  The directory
    name is stored in |self._prepared_symbol_data_sources_path|.

    Returns:
        True if succeeded.
    """
        LOGGER.info("Preparing symbol mapping...")
        self._prepared_symbol_data_sources_path, used_tempdir = prepare_symbol_info(
            self._prefix + ".maps", self._prefix + ".symmap", True
        )
        if self._prepared_symbol_data_sources_path:
            LOGGER.info("  Prepared symbol mapping.")
            if used_tempdir:
                LOGGER.warn("  Using a temporary directory for symbol mapping.")
                LOGGER.warn("  Delete it by yourself.")
                LOGGER.warn("  Or, move the directory by yourself to use it later.")
            return True
        else:
            LOGGER.warn("  Failed to prepare symbol mapping.")
            return False