Struct gimli::DebugInfo[][src]

pub struct DebugInfo<R: Reader> { /* fields omitted */ }

The DebugInfo struct represents the DWARF debugging information found in the .debug_info section.

Methods

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

Construct a new DebugInfo instance from the data in the .debug_info section.

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

let debug_info = DebugInfo::new(read_debug_info_section_somehow(), LittleEndian);

impl<R: Reader> DebugInfo<R>
[src]

Iterate the compilation- and partial-units in this .debug_info section.

use gimli::{DebugInfo, LittleEndian};

let debug_info = DebugInfo::new(read_debug_info_section_somehow(), LittleEndian);

let mut iter = debug_info.units();
while let Some(unit) = iter.next().unwrap() {
    println!("unit's length is {}", unit.unit_length());
}

Can be used with FallibleIterator.

Get the CompilationUnitHeader located at offset from this .debug_info section.

Trait Implementations

impl<R: Debug + Reader> Debug for DebugInfo<R>
[src]

Formats the value using the given formatter. Read more

impl<R: Clone + Reader> Clone for DebugInfo<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: Copy + Reader> Copy for DebugInfo<R>
[src]

impl<R: Reader> Section<R> for DebugInfo<R>
[src]

Returns the ELF section name for this type.

impl<R: Reader> From<R> for DebugInfo<R>
[src]

Performs the conversion.

Auto Trait Implementations

impl<R> Send for DebugInfo<R> where
    R: Send

impl<R> Sync for DebugInfo<R> where
    R: Sync