Struct gimli::DebugAbbrev
[−]
[src]
pub struct DebugAbbrev<R: Reader> { /* fields omitted */ }
The DebugAbbrev
struct represents the abbreviations describing
DebuggingInformationEntry
s' attribute names and forms found in the
.debug_abbrev
section.
Methods
impl<'input, Endian> DebugAbbrev<EndianBuf<'input, Endian>> where
Endian: Endianity,
[src]
Endian: Endianity,
fn new(debug_abbrev_section: &'input [u8], endian: Endian) -> Self
Construct a new DebugAbbrev
instance from the data in the .debug_abbrev
section.
It is the caller's responsibility to read the .debug_abbrev
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::{DebugAbbrev, LittleEndian}; let debug_abbrev = DebugAbbrev::new(read_debug_abbrev_section_somehow(), LittleEndian);
impl<R: Reader> DebugAbbrev<R>
[src]
fn abbreviations(
&self,
debug_abbrev_offset: DebugAbbrevOffset<R::Offset>
) -> Result<Abbreviations>
&self,
debug_abbrev_offset: DebugAbbrevOffset<R::Offset>
) -> Result<Abbreviations>
Parse the abbreviations at the given offset
within this
.debug_abbrev
section.
The offset
should generally be retrieved from a unit header.
Trait Implementations
impl<R: Debug + Reader> Debug for DebugAbbrev<R>
[src]
impl<R: Clone + Reader> Clone for DebugAbbrev<R>
[src]
fn clone(&self) -> DebugAbbrev<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: Copy + Reader> Copy for DebugAbbrev<R>
[src]
impl<R: Reader> Section<R> for DebugAbbrev<R>
[src]
fn section_name() -> &'static str
Returns the ELF section name for this type.
impl<R: Reader> From<R> for DebugAbbrev<R>
[src]
fn from(debug_abbrev_section: R) -> Self
Performs the conversion.