Skip to main content

DebugData

Struct DebugData 

Source
pub struct DebugData<'a> {
    pub codeview_pdb70_debug_info: Option<CodeviewPDB70DebugInfo<'a>>,
    pub codeview_pdb20_debug_info: Option<CodeviewPDB20DebugInfo<'a>>,
    pub vcfeature_info: Option<VCFeatureInfo>,
    pub ex_dll_characteristics_info: Option<ExDllCharacteristicsInfo>,
    pub repro_info: Option<ReproInfo<'a>>,
    pub pogo_info: Option<POGOInfo<'a>>,
    /* private fields */
}
Expand description

Represents debug data extracted from a PE (Portable Executable) or TE (Terse Executable) file.

Fields§

§codeview_pdb70_debug_info: Option<CodeviewPDB70DebugInfo<'a>>

Parsed CodeView PDB 7.0 (RSDS) debug information, if available.

CodeView PDB 7.0 contains a GUID, an age value, and the path to the PDB file. This is commonly used in modern PDB files.

IMAGE_DEBUG_TYPE_CODEVIEW

§codeview_pdb20_debug_info: Option<CodeviewPDB20DebugInfo<'a>>

Parsed CodeView PDB 2.0 (NB10) debug information, if available.

CodeView PDB 2.0 includes a signature, an age value, and the path to the PDB file. It is used in older PDB formats.

IMAGE_DEBUG_TYPE_CODEVIEW

§vcfeature_info: Option<VCFeatureInfo>

Visual C++ feature data, if available.

This includes information about specific features or optimizations enabled in Visual C++ builds.

IMAGE_DEBUG_TYPE_VC_FEATURE

§ex_dll_characteristics_info: Option<ExDllCharacteristicsInfo>

Extended DLL characteristics information, if available.

This data includes extended properties of the DLL that may affect how the operating system handles the DLL, such as security features.

IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS

§repro_info: Option<ReproInfo<'a>>

Reproducible build (Repro) information, if available.

IMAGE_DEBUG_TYPE_REPRO

§pogo_info: Option<POGOInfo<'a>>

Profile-guided optimization (POGO aka PGO) data, if available.

This data provides information relevant to Profile-Guided Optimization (POGO) processes, including function and data block optimizations.

IMAGE_DEBUG_TYPE_POGO

Reference: https://devblogs.microsoft.com/cppblog/pogo

Implementations§

Source§

impl<'a> DebugData<'a>

Source

pub fn parse( bytes: &'a [u8], dd: DataDirectory, sections: &[SectionTable], file_alignment: u32, ) -> Result<Self>

Source

pub fn parse_with_opts( bytes: &'a [u8], dd: DataDirectory, sections: &[SectionTable], file_alignment: u32, opts: &ParseOptions, ) -> Result<Self>

Source

pub fn parse_with_opts_and_fixup( bytes: &'a [u8], dd: DataDirectory, sections: &[SectionTable], file_alignment: u32, opts: &ParseOptions, rva_offset: u32, ) -> Result<Self>

Source

pub fn guid(&self) -> Option<[u8; 16]>

Return this executable’s debugging GUID, suitable for matching against a PDB file.

Source

pub fn find_type(&self, data_type: u32) -> Option<ImageDebugDirectory>

Find a specific debug type in the debug data.

Source

pub fn entries(&self) -> ImageDebugDirectoryIterator<'a>

Returns iterator for ImageDebugDirectory

Trait Implementations§

Source§

impl<'a> Clone for DebugData<'a>

Source§

fn clone(&self) -> DebugData<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for DebugData<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for DebugData<'a>

Source§

fn default() -> DebugData<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> PartialEq for DebugData<'a>

Source§

fn eq(&self, other: &DebugData<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> StructuralPartialEq for DebugData<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for DebugData<'a>

§

impl<'a> RefUnwindSafe for DebugData<'a>

§

impl<'a> Send for DebugData<'a>

§

impl<'a> Sync for DebugData<'a>

§

impl<'a> Unpin for DebugData<'a>

§

impl<'a> UnsafeUnpin for DebugData<'a>

§

impl<'a> UnwindSafe for DebugData<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.