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