LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
LIEF::pdb::CompilationUnit Class Reference

This class represents a CompilationUnit (or Module) in a PDB file. More...

#include <CompilationUnit.hpp>

Classes

class  Iterator
 

Public Types

using sources_iterator = iterator_range<std::vector<std::string>::const_iterator>
 Iterator over the sources file (std::string)
 
using function_iterator = iterator_range<Function::Iterator>
 

Public Member Functions

 CompilationUnit (std::unique_ptr< details::CompilationUnit > impl)
 
 ~CompilationUnit ()
 
std::string module_name () const
 Name (or path) to the COFF object (.obj) associated with this compilation unit (e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvlp.obj)
 
std::string object_filename () const
 Name of path to the original binary object (COFF, Archive) in which the compilation unit was located before being linked. e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvl.lib
 
sources_iterator sources () const
 Iterator over the sources files that compose this compilation unit. These files also include headers (.h, .hpp, ...).
 
function_iterator functions () const
 Return an iterator over the function defined in this compilation unit. If the PDB does not contain or has an empty DBI stream, it returns an empty iterator.
 

Detailed Description

This class represents a CompilationUnit (or Module) in a PDB file.

Member Typedef Documentation

◆ function_iterator

◆ sources_iterator

using LIEF::pdb::CompilationUnit::sources_iterator = iterator_range<std::vector<std::string>::const_iterator>

Iterator over the sources file (std::string)

Constructor & Destructor Documentation

◆ CompilationUnit()

LIEF::pdb::CompilationUnit::CompilationUnit ( std::unique_ptr< details::CompilationUnit > impl)

◆ ~CompilationUnit()

LIEF::pdb::CompilationUnit::~CompilationUnit ( )

Member Function Documentation

◆ functions()

function_iterator LIEF::pdb::CompilationUnit::functions ( ) const

Return an iterator over the function defined in this compilation unit. If the PDB does not contain or has an empty DBI stream, it returns an empty iterator.

◆ module_name()

std::string LIEF::pdb::CompilationUnit::module_name ( ) const

Name (or path) to the COFF object (.obj) associated with this compilation unit (e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvlp.obj)

◆ object_filename()

std::string LIEF::pdb::CompilationUnit::object_filename ( ) const

Name of path to the original binary object (COFF, Archive) in which the compilation unit was located before being linked. e.g. e:\obj.amd64fre\minkernel\ntos\hvl\mp\objfre\amd64\hvl.lib

◆ sources()

sources_iterator LIEF::pdb::CompilationUnit::sources ( ) const

Iterator over the sources files that compose this compilation unit. These files also include headers (.h, .hpp, ...).


The documentation for this class was generated from the following file: