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