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]
Endian: Endianity,
fn new(debug_pubtypes_section: &'input [u8], endian: Endian) -> Self
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]
fn items(&self) -> PubTypesEntryIter<R>
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]
impl<R: Clone + Reader> Clone for DebugPubTypes<R>
[src]
fn clone(&self) -> DebugPubTypes<R>
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<R: Reader> Section<R> for DebugPubTypes<R>
[src]
fn section_name() -> &'static str
Returns the ELF section name for this type.
impl<R: Reader> From<R> for DebugPubTypes<R>
[src]
fn from(debug_pubtypes_section: R) -> Self
Performs the conversion.