Struct gimli::DebugLoc[][src]

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

The DebugLoc struct represents the DWARF strings found in the .debug_loc section.

Methods

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

Construct a new DebugLoc instance from the data in the .debug_loc section.

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

let debug_loc = DebugLoc::new(read_debug_loc_section_somehow(), LittleEndian);

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Returns the ELF section name for this type.

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

Performs the conversion.

Auto Trait Implementations

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

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