Struct gimli::DebugPubTypes [] [src]

pub struct DebugPubTypes<R: Reader>(_);

The DebugPubTypes struct represents the DWARF public types information found in the .debug_info section.

Methods

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

Construct a new DebugPubTypes instance from the data in the .debug_pubtypes section.

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

let debug_pubtypes =
    DebugPubTypes::new(read_debug_pubtypes_somehow(), LittleEndian);

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

Iterate the pubtypes in the .debug_pubtypes section.

use gimli::{DebugPubTypes, EndianBuf, LittleEndian};

let debug_pubtypes =
    DebugPubTypes::new(read_debug_pubtypes_section_somehow(), LittleEndian);

let mut iter = debug_pubtypes.items();
while let Some(pubtype) = iter.next().unwrap() {
  println!("pubtype {} found!", pubtype.name().to_string_lossy());
}

Trait Implementations

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Returns the ELF section name for this type.

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

Performs the conversion.