[−][src]Struct gimli::read::Unit
All of the commonly used information for a unit in the .debug_info or .debug_types
sections.
Fields
offset: UnitSectionOffset<Offset>The section offset of the unit.
header: UnitHeader<R, Offset>The header of the unit.
abbreviations: AbbreviationsThe parsed abbreviations for the unit.
name: Option<R>The DW_AT_name attribute of the unit.
comp_dir: Option<R>The DW_AT_comp_dir attribute of the unit.
low_pc: u64The DW_AT_low_pc attribute of the unit. Defaults to 0.
str_offsets_base: DebugStrOffsetsBase<Offset>The DW_AT_str_offsets_base attribute of the unit. Defaults to 0.
addr_base: DebugAddrBase<Offset>The DW_AT_addr_base attribute of the unit. Defaults to 0.
loclists_base: DebugLocListsBase<Offset>The DW_AT_loclists_base attribute of the unit. Defaults to 0.
rnglists_base: DebugRngListsBase<Offset>The DW_AT_rnglists_base attribute of the unit. Defaults to 0.
line_program: Option<IncompleteLineProgram<R, Offset>>The line number program of the unit.
Implementations
impl<R: Reader> Unit<R>[src]
pub fn new(dwarf: &Dwarf<R>, header: CompilationUnitHeader<R>) -> Result<Self>[src]
Construct a new Unit from the given compilation unit header.
pub fn new_type_unit(
dwarf: &Dwarf<R>,
header: TypeUnitHeader<R>
) -> Result<Self>[src]
dwarf: &Dwarf<R>,
header: TypeUnitHeader<R>
) -> Result<Self>
Construct a new Unit from the given type unit header.
pub fn encoding(&self) -> Encoding[src]
Return the encoding parameters for this unit.
pub fn entry(
&self,
offset: UnitOffset<R::Offset>
) -> Result<DebuggingInformationEntry<R>>[src]
&self,
offset: UnitOffset<R::Offset>
) -> Result<DebuggingInformationEntry<R>>
Read the DebuggingInformationEntry at the given offset.
pub fn entries(&self) -> EntriesCursor<R>[src]
Navigate this unit's DebuggingInformationEntrys.
pub fn entries_at_offset(
&self,
offset: UnitOffset<R::Offset>
) -> Result<EntriesCursor<R>>[src]
&self,
offset: UnitOffset<R::Offset>
) -> Result<EntriesCursor<R>>
Navigate this unit's DebuggingInformationEntrys
starting at the given offset.
pub fn entries_tree(
&self,
offset: Option<UnitOffset<R::Offset>>
) -> Result<EntriesTree<R>>[src]
&self,
offset: Option<UnitOffset<R::Offset>>
) -> Result<EntriesTree<R>>
Navigate this unit's DebuggingInformationEntrys as a tree
starting at the given offset.
pub fn entries_raw(
&self,
offset: Option<UnitOffset<R::Offset>>
) -> Result<EntriesRaw<R>>[src]
&self,
offset: Option<UnitOffset<R::Offset>>
) -> Result<EntriesRaw<R>>
Read the raw data that defines the Debugging Information Entries.
Trait Implementations
impl<R: Debug, Offset: Debug> Debug for Unit<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, [src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations
impl<R, Offset> Send for Unit<R, Offset> where
Offset: Send,
R: Send,
Offset: Send,
R: Send,
impl<R, Offset> Sync for Unit<R, Offset> where
Offset: Sync,
R: Sync,
Offset: Sync,
R: Sync,
impl<R, Offset> Unpin for Unit<R, Offset> where
Offset: Unpin,
R: Unpin,
Offset: Unpin,
R: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,