[][src]Struct gimli::read::TypeUnitHeader

pub struct TypeUnitHeader<R, Offset = <R as Reader>::Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
{ /* fields omitted */ }

The header of a type unit's debugging information.

Implementations

impl<R, Offset> TypeUnitHeader<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

pub fn header(self) -> UnitHeader<R, Offset>[src]

Return the UnitHeader containing common unit fields.

pub fn size_of_header(format: Format) -> usize[src]

Return the serialized size of the type-unit header for the given DWARF format.

pub fn offset(&self) -> DebugTypesOffset<R::Offset>[src]

Get the offset of this compilation unit within the .debug_info section.

pub fn unit_length(&self) -> R::Offset[src]

Get the length of the debugging info for this type-unit.

pub fn length_including_self(&self) -> R::Offset[src]

Get the length of the debugging info for this type-unit, including the byte length of the encoded length itself.

pub fn encoding(&self) -> Encoding[src]

Return the encoding parameters for this unit.

pub fn version(&self) -> u16[src]

Get the DWARF version of the debugging info for this type-unit.

pub fn debug_abbrev_offset(&self) -> DebugAbbrevOffset<R::Offset>[src]

The offset into the .debug_abbrev section for this type-unit's debugging information entries.

pub fn address_size(&self) -> u8[src]

The size of addresses (in bytes) in this type-unit.

pub fn format(&self) -> Format[src]

Whether this type unit is encoded in 64- or 32-bit DWARF.

pub fn header_size(&self) -> R::Offset[src]

The serialized size of the header for this type-unit.

pub fn type_signature(&self) -> DebugTypeSignature[src]

Get the unique type signature for this type unit.

pub fn type_offset(&self) -> UnitOffset<R::Offset>[src]

Get the offset within this type unit where the type is defined.

pub fn entries<'me, 'abbrev>(
    &'me self,
    abbreviations: &'abbrev Abbreviations
) -> EntriesCursor<'abbrev, 'me, R>
[src]

Navigate this type unit's DebuggingInformationEntrys.

pub fn entries_at_offset<'me, 'abbrev>(
    &'me self,
    abbreviations: &'abbrev Abbreviations,
    offset: UnitOffset<R::Offset>
) -> Result<EntriesCursor<'abbrev, 'me, R>>
[src]

Navigate this type unit's DebuggingInformationEntrys starting at the given offset.

pub fn entries_tree<'me, 'abbrev>(
    &'me self,
    abbreviations: &'abbrev Abbreviations,
    offset: Option<UnitOffset<R::Offset>>
) -> Result<EntriesTree<'abbrev, 'me, R>>
[src]

Navigate this type unit's DebuggingInformationEntrys as a tree starting at the given offset.

pub fn entries_raw<'me, 'abbrev>(
    &'me self,
    abbreviations: &'abbrev Abbreviations,
    offset: Option<UnitOffset<R::Offset>>
) -> Result<EntriesRaw<'abbrev, 'me, R>>
[src]

Read the raw data that defines the Debugging Information Entries.

pub fn abbreviations(
    &self,
    debug_abbrev: &DebugAbbrev<R>
) -> Result<Abbreviations>
[src]

Parse this type unit's abbreviations.

use gimli::DebugAbbrev;

let unit = get_some_type_unit();

let debug_abbrev = DebugAbbrev::new(read_debug_abbrev_section_somehow(), LittleEndian);
let abbrevs_for_unit = unit.abbreviations(&debug_abbrev).unwrap();

Trait Implementations

impl<R: Clone, Offset: Clone> Clone for TypeUnitHeader<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R: Copy, Offset: Copy> Copy for TypeUnitHeader<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R: Debug, Offset: Debug> Debug for TypeUnitHeader<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R: Eq, Offset: Eq> Eq for TypeUnitHeader<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R: PartialEq, Offset: PartialEq> PartialEq<TypeUnitHeader<R, Offset>> for TypeUnitHeader<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R, Offset> StructuralEq for TypeUnitHeader<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

impl<R, Offset> StructuralPartialEq for TypeUnitHeader<R, Offset> where
    R: Reader<Offset = Offset>,
    Offset: ReaderOffset
[src]

Auto Trait Implementations

impl<R, Offset> RefUnwindSafe for TypeUnitHeader<R, Offset> where
    Offset: RefUnwindSafe,
    R: RefUnwindSafe

impl<R, Offset> Send for TypeUnitHeader<R, Offset> where
    Offset: Send,
    R: Send

impl<R, Offset> Sync for TypeUnitHeader<R, Offset> where
    Offset: Sync,
    R: Sync

impl<R, Offset> Unpin for TypeUnitHeader<R, Offset> where
    Offset: Unpin,
    R: Unpin

impl<R, Offset> UnwindSafe for TypeUnitHeader<R, Offset> where
    Offset: UnwindSafe,
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.