Struct gimli::UnitHeader [] [src]

pub struct UnitHeader<'input, Endian> where Endian: Endianity {
    // some fields omitted
}

The header of a compilation unit's debugging information.

Methods

impl<'input, Endian> UnitHeader<'input, Endian> where Endian: Endianity
[src]

Static methods.

Construct a new UnitHeader.

Return the serialized size of the unit_length attribute for the given DWARF format.

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

impl<'input, Endian> UnitHeader<'input, Endian> where Endian: Endianity
[src]

Instance methods.

Get the length of the debugging info for this compilation unit, not including the byte length of the encoded length itself.

Get the length of the debugging info for this compilation unit, uncluding the byte length of the encoded length itself.

Get the DWARF version of the debugging info for this compilation unit.

The offset into the .debug_abbrev section for this compilation unit's debugging information entries' abbreviations.

The size of addresses (in bytes) in this compilation unit.

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

Get the underlying bytes for the supplied range.

Get the underlying bytes for the supplied range.

Get the underlying bytes for the supplied range.

Navigate this compilation unit's DebuggingInformationEntrys.

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: Eq> Eq for UnitHeader<'input, Endian> where Endian: Endianity
[src]

impl<'input, Endian: PartialEq> PartialEq for UnitHeader<'input, Endian> where Endian: Endianity
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'input, Endian: Copy> Copy for UnitHeader<'input, Endian> where Endian: Endianity
[src]

impl<'input, Endian: Clone> Clone for UnitHeader<'input, Endian> where Endian: Endianity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'input, Endian: Debug> Debug for UnitHeader<'input, Endian> where Endian: Endianity
[src]

Formats the value using the given formatter.