Struct gimli::DebugAbbrev
[−]
[src]
pub struct DebugAbbrev<'input, Endian> where Endian: Endianity { /* 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<'input, Endian> where Endian: Endianity
[src]
fn new(debug_abbrev_section: &'input [u8]) -> DebugAbbrev<'input, Endian>
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::<LittleEndian>::new(read_debug_abbrev_section_somehow());
fn abbreviations(&self,
debug_abbrev_offset: DebugAbbrevOffset)
-> Result<Abbreviations>
debug_abbrev_offset: DebugAbbrevOffset)
-> 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<'input, Endian: Debug> Debug for DebugAbbrev<'input, Endian> where Endian: Endianity
[src]
impl<'input, Endian: Clone> Clone for DebugAbbrev<'input, Endian> where Endian: Endianity
[src]
fn clone(&self) -> DebugAbbrev<'input, Endian>
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