[go: up one dir, main page]

Struct gimli::DebugAbbrev [] [src]

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

The DebugAbbrev struct represents the abbreviations describing DebuggingInformationEntrys' attribute names and forms found in the .debug_abbrev section.

Methods

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

fn new(debug_abbrev_section: &'input [u8]) -> DebugAbbrev<'input, Endian>

Construct a new DebugAbbrev instance from the data in the .debug_abbrev section.

It is the caller's responsibility to read the .debug_abbrev section and present it as a &[u8] slice. That means using some ELF loader on Linux, a Mach-O loader on OSX, etc.

use gimli::{DebugAbbrev, LittleEndian};

let debug_abbrev = DebugAbbrev::<LittleEndian>::new(read_debug_abbrev_section_somehow());

fn abbreviations(&self) -> ParseResult<Abbreviations>

Parse the abbreviations within this .debug_abbrev section.