pub struct DebugSections { /* private fields */ }
Expand description

The set of debug sections that we need to use from a crate object file.

All debug sections herein are contained within a single MappedPages memory region.

Implementations§

Returns the ".debug_str" section.

Returns the ".debug_loc" section.

Returns the ".debug_abbrev" section.

Returns the ".debug_info" section.

Returns the ".debug_ranges" section.

Returns the ".debug_pubnames" section.

Returns the ".debug_pubtypes" section.

Returns the ".debug_line" section.

Finds the subprogram that contains the given instruction pointer.

A subprogram is DWARF’s term for an executable function/method/closure/subroutine, which has a bounded range of program counters / instruction pointers that can be searched.

Return

Returns the offset into the DebugInfo of the Debugging Information Entry (DIE) that describes the subprogram that covers (includes) the virtual address of the given instruction_pointer.

If a matching subprogram DIE is not found, Ok(None) is returned.

Otherwise, an error is returned upon failure, e.g., a problem parsing the debug sections.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.