Struct gimli::DebugRanges [−][src]
pub struct DebugRanges<R: Reader> { /* fields omitted */ }
The DebugRanges
struct represents the DWARF strings
found in the .debug_ranges
section.
Methods
impl<'input, Endian> DebugRanges<EndianSlice<'input, Endian>> where
Endian: Endianity,
[src]
impl<'input, Endian> DebugRanges<EndianSlice<'input, Endian>> where
Endian: Endianity,
pub fn new(debug_ranges_section: &'input [u8], endian: Endian) -> Self
[src]
pub fn new(debug_ranges_section: &'input [u8], endian: Endian) -> Self
Construct a new DebugRanges
instance from the data in the .debug_ranges
section.
It is the caller's responsibility to read the .debug_ranges
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::{DebugRanges, LittleEndian}; let debug_ranges = DebugRanges::new(read_debug_ranges_section_somehow(), LittleEndian);
Trait Implementations
impl<R: Debug + Reader> Debug for DebugRanges<R>
[src]
impl<R: Debug + Reader> Debug for DebugRanges<R>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<R: Clone + Reader> Clone for DebugRanges<R>
[src]
impl<R: Clone + Reader> Clone for DebugRanges<R>
fn clone(&self) -> DebugRanges<R>
[src]
fn clone(&self) -> DebugRanges<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<R: Copy + Reader> Copy for DebugRanges<R>
[src]
impl<R: Copy + Reader> Copy for DebugRanges<R>
impl<R: Reader> Section<R> for DebugRanges<R>
[src]
impl<R: Reader> Section<R> for DebugRanges<R>
fn section_name() -> &'static str
[src]
fn section_name() -> &'static str
Returns the ELF section name for this type.
impl<R: Reader> From<R> for DebugRanges<R>
[src]
impl<R: Reader> From<R> for DebugRanges<R>
Auto Trait Implementations
impl<R> Send for DebugRanges<R> where
R: Send,
impl<R> Send for DebugRanges<R> where
R: Send,
impl<R> Sync for DebugRanges<R> where
R: Sync,
impl<R> Sync for DebugRanges<R> where
R: Sync,