libabigail
Loading...
Searching...
No Matches
Typedefs | Functions
abigail::ctf Namespace Reference

The namespace for the CTF reader. More...

Typedefs

typedef shared_ptr< reader > reader_sptr
 Convenience typedef for shared_ptr of abigail::ctf::reader. More...
 

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

The namespace for the CTF reader.

Typedef Documentation

◆ reader_sptr

typedef shared_ptr<reader> reader_sptr

Convenience typedef for shared_ptr of abigail::ctf::reader.

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

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 1621 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 1650 of file abg-ctf-reader.cc.