Struct lief::pdb::compilation_unit::CompilationUnit
pub struct CompilationUnit<'a> { /* private fields */ }
Expand description
This structure represents a CompilationUnit (or Module) in a PDB file
Implementations§
§impl CompilationUnit<'_>
impl CompilationUnit<'_>
pub fn module_name(&self) -> String
pub fn module_name(&self) -> String
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
)
pub fn object_filename(&self) -> String
pub fn object_filename(&self) -> String
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
pub fn functions(&self) -> Functions<'_> ⓘ
pub fn functions(&self) -> Functions<'_> ⓘ
Return an iterator over the crate::pdb::Function
defined in this compilation unit.
If the PDB does not contain or has an empty DBI stream, it returns
an empty iterator.
pub fn sources(&self) -> Sources<'_> ⓘ
pub fn sources(&self) -> Sources<'_> ⓘ
Iterator over the sources files (as string) that compose this compilation unit.
These files include the header (.h, .hpp
, …).
pub fn build_metadata(&self) -> Option<BuildMetadata<'_>>
pub fn build_metadata(&self) -> Option<BuildMetadata<'_>>
Return build metadata such as the version of the compiler or the original source language of this compilation unit