libabigail
Namespaces | Functions
abg-ctf-reader.h File Reference

This file contains the declarations of the entry points to de-serialize an instance of abigail::corpus from a file in elf format, containing CTF information. More...

#include <ostream>
#include "abg-corpus.h"
#include "abg-suppression.h"
#include "abg-elf-based-reader.h"
#include "ctf-api.h"
Include dependency graph for abg-ctf-reader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  abigail
 Toplevel namespace for libabigail.
 

Functions

elf_based_reader_sptr create_reader (const std::string &elf_path, const vector< char ** > &debug_info_root_paths, environment &env)
 Create and return a new read context to process CTF information from a given ELF file. More...
 
void reset_reader (elf_based_reader &rdr, const std::string &elf_path, const vector< char ** > &debug_info_root_path)
 Re-initialize a reader so that it can re-used to read another binary. More...
 

Detailed Description

This file contains the declarations of the entry points to de-serialize an instance of abigail::corpus from a file in elf format, containing CTF information.

Definition in file abg-ctf-reader.h.

Function Documentation

◆ create_reader()

elf_based_reader_sptr create_reader ( const std::string &  elf_path,
const vector< char ** > &  debug_info_root_paths,
environment env 
)

Create and return a new read context to process CTF information from a given ELF file.

Parameters
elf_paththe patch of some ELF file.
enva libabigail IR environment.

Definition at line 1675 of file abg-ctf-reader.cc.

◆ reset_reader()

void reset_reader ( elf_based_reader rdr,
const std::string &  elf_path,
const vector< char ** > &  debug_info_root_path 
)

Re-initialize a reader so that it can re-used to read another binary.

Parameters
rdrthe context to re-initialize.
elf_paththe path to the elf file the context is to be used for.
environmentthe environment used by the current context. This environment contains resources needed by the reader and by the types and declarations that are to be created later. Note that ABI artifacts that are to be compared all need to be created within the same environment.

Please also note that the life time of this environment object must be greater than the life time of the resulting reader the context uses resources that are allocated in the environment.

Definition at line 1704 of file abg-ctf-reader.cc.