[−]Struct symbolic::debuginfo::dwarf::gimli::TypeUnitHeader
The header of a type unit's debugging information.
Implementations
impl<R, Offset> TypeUnitHeader<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
pub fn header(self) -> UnitHeader<R, Offset>
Return the UnitHeader
containing common unit fields.
pub fn size_of_header(encoding: Encoding) -> usize
Return the serialized size of the type-unit header for the given DWARF format.
pub fn offset(&self) -> DebugTypesOffset<<R as Reader>::Offset>
Get the offset of this compilation unit within the .debug_info section.
pub fn unit_length(&self) -> <R as Reader>::Offset
Get the length of the debugging info for this type-unit.
pub fn length_including_self(&self) -> <R as Reader>::Offset
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
Return the encoding parameters for this unit.
pub fn version(&self) -> u16
Get the DWARF version of the debugging info for this type-unit.
pub fn debug_abbrev_offset(&self) -> DebugAbbrevOffset<<R as Reader>::Offset>
The offset into the .debug_abbrev
section for this type-unit's
debugging information entries.
pub fn address_size(&self) -> u8
The size of addresses (in bytes) in this type-unit.
pub fn format(&self) -> Format
Whether this type unit is encoded in 64- or 32-bit DWARF.
pub fn header_size(&self) -> <R as Reader>::Offset
The serialized size of the header for this type-unit.
pub fn type_signature(&self) -> DebugTypeSignature
Get the unique type signature for this type unit.
pub fn type_offset(&self) -> UnitOffset<<R as Reader>::Offset>
Get the offset within this type unit where the type is defined.
pub fn entries(
&'me self,
abbreviations: &'abbrev Abbreviations
) -> EntriesCursor<'abbrev, 'me, R>
&'me self,
abbreviations: &'abbrev Abbreviations
) -> EntriesCursor<'abbrev, 'me, R>
Navigate this type unit's DebuggingInformationEntry
s.
pub fn entries_at_offset(
&'me self,
abbreviations: &'abbrev Abbreviations,
offset: UnitOffset<<R as Reader>::Offset>
) -> Result<EntriesCursor<'abbrev, 'me, R>, Error>
&'me self,
abbreviations: &'abbrev Abbreviations,
offset: UnitOffset<<R as Reader>::Offset>
) -> Result<EntriesCursor<'abbrev, 'me, R>, Error>
Navigate this type unit's DebuggingInformationEntry
s
starting at the given offset.
pub fn entries_tree(
&'me self,
abbreviations: &'abbrev Abbreviations,
offset: Option<UnitOffset<<R as Reader>::Offset>>
) -> Result<EntriesTree<'abbrev, 'me, R>, Error>
&'me self,
abbreviations: &'abbrev Abbreviations,
offset: Option<UnitOffset<<R as Reader>::Offset>>
) -> Result<EntriesTree<'abbrev, 'me, R>, Error>
Navigate this type unit's DebuggingInformationEntry
s as a tree
starting at the given offset.
pub fn entries_raw(
&'me self,
abbreviations: &'abbrev Abbreviations,
offset: Option<UnitOffset<<R as Reader>::Offset>>
) -> Result<EntriesRaw<'abbrev, 'me, R>, Error>
&'me self,
abbreviations: &'abbrev Abbreviations,
offset: Option<UnitOffset<<R as Reader>::Offset>>
) -> Result<EntriesRaw<'abbrev, 'me, R>, Error>
Read the raw data that defines the Debugging Information Entries.
pub fn abbreviations(
&self,
debug_abbrev: &DebugAbbrev<R>
) -> Result<Abbreviations, Error>
&self,
debug_abbrev: &DebugAbbrev<R>
) -> Result<Abbreviations, Error>
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, Offset> Clone for TypeUnitHeader<R, Offset> where
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
R: Clone + Reader<Offset = Offset>,
Offset: Clone + ReaderOffset,
pub fn clone(&self) -> TypeUnitHeader<R, Offset>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R, Offset> Copy for TypeUnitHeader<R, Offset> where
R: Copy + Reader<Offset = Offset>,
Offset: Copy + ReaderOffset,
R: Copy + Reader<Offset = Offset>,
Offset: Copy + ReaderOffset,
impl<R, Offset> Debug for TypeUnitHeader<R, Offset> where
R: Debug + Reader<Offset = Offset>,
Offset: Debug + ReaderOffset,
R: Debug + Reader<Offset = Offset>,
Offset: Debug + ReaderOffset,
impl<R, Offset> Eq for TypeUnitHeader<R, Offset> where
R: Eq + Reader<Offset = Offset>,
Offset: Eq + ReaderOffset,
R: Eq + Reader<Offset = Offset>,
Offset: Eq + ReaderOffset,
impl<R, Offset> PartialEq<TypeUnitHeader<R, Offset>> for TypeUnitHeader<R, Offset> where
R: PartialEq<R> + Reader<Offset = Offset>,
Offset: PartialEq<Offset> + ReaderOffset,
R: PartialEq<R> + Reader<Offset = Offset>,
Offset: PartialEq<Offset> + ReaderOffset,
pub fn eq(&self, other: &TypeUnitHeader<R, Offset>) -> bool
pub fn ne(&self, other: &TypeUnitHeader<R, Offset>) -> bool
impl<R, Offset> StructuralEq for TypeUnitHeader<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> StructuralPartialEq for TypeUnitHeader<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations
impl<R, Offset> RefUnwindSafe for TypeUnitHeader<R, Offset> where
Offset: RefUnwindSafe,
R: RefUnwindSafe,
[src]
Offset: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, Offset> Send for TypeUnitHeader<R, Offset> where
Offset: Send,
R: Send,
[src]
Offset: Send,
R: Send,
impl<R, Offset> Sync for TypeUnitHeader<R, Offset> where
Offset: Sync,
R: Sync,
[src]
Offset: Sync,
R: Sync,
impl<R, Offset> Unpin for TypeUnitHeader<R, Offset> where
Offset: Unpin,
R: Unpin,
[src]
Offset: Unpin,
R: Unpin,
impl<R, Offset> UnwindSafe for TypeUnitHeader<R, Offset> where
Offset: UnwindSafe,
R: UnwindSafe,
[src]
Offset: UnwindSafe,
R: UnwindSafe,
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,