Struct gimli::DebugAranges [] [src]

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

The DebugAranges struct represents the DWARF address range information found in the .debug_aranges section.

Methods

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

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

Construct a new DebugAranges instance from the data in the .debug_aranges section.

It is the caller's responsibility to read the .debug_aranges 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::{DebugAranges, LittleEndian};

let debug_aranges = DebugAranges::<LittleEndian>::new(read_debug_aranges_section_somehow());

fn aranges(&self) -> ArangeEntryIter<Endian>

Iterate the aranges in the .debug_aranges section. ``` use gimli{DebugAranges, LittleEndian};

let buf = [];

let read_debug_aranges_section_somehow = || &buf;

let debug_aranges = DebugAranges::::new(read_debug_aranges_section_somehow());

for parse_result in debug_aranges.aranges() { let arange = parse_result.unwrap(); println!("arange starts at {}, has length {}", arange.start(), arange.len()); } ```

Trait Implementations

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

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

fn clone(&self) -> DebugAranges<'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: Debug> Debug for DebugAranges<'input, Endian> where Endian: Endianity
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.