Struct gimli::TypeUnitHeader [−][src]
pub struct TypeUnitHeader<R, Offset = usize> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, { /* fields omitted */ }
The header of a type unit's debugging information.
Methods
impl<R, Offset> TypeUnitHeader<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
impl<R, Offset> TypeUnitHeader<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
pub fn size_of_header(format: Format) -> usize
[src]
pub fn size_of_header(format: Format) -> usize
Return the serialized size of the type-unit header for the given DWARF format.
pub fn offset(&self) -> DebugTypesOffset<R::Offset>
[src]
pub fn offset(&self) -> DebugTypesOffset<R::Offset>
Get the offset of this compilation unit within the .debug_info section.
pub fn unit_length(&self) -> R::Offset
[src]
pub fn unit_length(&self) -> R::Offset
Get the length of the debugging info for this type-unit.
pub fn length_including_self(&self) -> R::Offset
[src]
pub fn length_including_self(&self) -> R::Offset
Get the length of the debugging info for this type-unit, including the byte length of the encoded length itself.
pub fn version(&self) -> u16
[src]
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::Offset>
[src]
pub fn debug_abbrev_offset(&self) -> DebugAbbrevOffset<R::Offset>
The offset into the .debug_abbrev
section for this type-unit's
debugging information entries.
pub fn address_size(&self) -> u8
[src]
pub fn address_size(&self) -> u8
The size of addresses (in bytes) in this type-unit.
pub fn format(&self) -> Format
[src]
pub fn format(&self) -> Format
Whether this type unit is encoded in 64- or 32-bit DWARF.
pub fn header_size(&self) -> R::Offset
[src]
pub fn header_size(&self) -> R::Offset
The serialized size of the header for this type-unit.
pub fn type_signature(&self) -> DebugTypeSignature
[src]
pub fn type_signature(&self) -> DebugTypeSignature
Get the unique type signature for this type unit.
pub fn type_offset(&self) -> UnitOffset<R::Offset>
[src]
pub fn type_offset(&self) -> UnitOffset<R::Offset>
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]
pub fn entries<'me, 'abbrev>(
&'me self,
abbreviations: &'abbrev Abbreviations
) -> EntriesCursor<'abbrev, 'me, R>
Navigate this type unit's DebuggingInformationEntry
s.
pub fn entries_at_offset<'me, 'abbrev>(
&'me self,
abbreviations: &'abbrev Abbreviations,
offset: UnitOffset<R::Offset>
) -> Result<EntriesCursor<'abbrev, 'me, R>>
[src]
pub fn entries_at_offset<'me, 'abbrev>(
&'me self,
abbreviations: &'abbrev Abbreviations,
offset: UnitOffset<R::Offset>
) -> Result<EntriesCursor<'abbrev, 'me, R>>
Navigate this type unit's DebuggingInformationEntry
s
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]
pub fn entries_tree<'me, 'abbrev>(
&'me self,
abbreviations: &'abbrev Abbreviations,
offset: Option<UnitOffset<R::Offset>>
) -> Result<EntriesTree<'abbrev, 'me, R>>
Navigate this type unit's DebuggingInformationEntry
s as a tree
starting at the given offset.
pub fn abbreviations(
&self,
debug_abbrev: &DebugAbbrev<R>
) -> Result<Abbreviations>
[src]
pub fn abbreviations(
&self,
debug_abbrev: &DebugAbbrev<R>
) -> Result<Abbreviations>
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: Debug, Offset: Debug> Debug 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,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<R: Clone, Offset: Clone> Clone for TypeUnitHeader<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
impl<R: Clone, Offset: Clone> Clone for TypeUnitHeader<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn clone(&self) -> TypeUnitHeader<R, Offset>
[src]
fn clone(&self) -> TypeUnitHeader<R, Offset>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<R: Copy, Offset: Copy> Copy 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,
impl<R: PartialEq, Offset: PartialEq> PartialEq for TypeUnitHeader<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
impl<R: PartialEq, Offset: PartialEq> PartialEq for TypeUnitHeader<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn eq(&self, other: &TypeUnitHeader<R, Offset>) -> bool
[src]
fn eq(&self, other: &TypeUnitHeader<R, Offset>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TypeUnitHeader<R, Offset>) -> bool
[src]
fn ne(&self, other: &TypeUnitHeader<R, Offset>) -> bool
This method tests for !=
.
impl<R: Eq, Offset: Eq> Eq 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,
Auto Trait Implementations
impl<R, Offset> Send for TypeUnitHeader<R, Offset> where
Offset: Send,
R: Send,
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> Sync for TypeUnitHeader<R, Offset> where
Offset: Sync,
R: Sync,