Struct gimli::DebugRanges
[−]
[src]
pub struct DebugRanges<'input, Endian> where Endian: Endianity { /* fields omitted */ }The DebugRanges struct represents the DWARF strings
found in the .debug_ranges section.
Methods
impl<'input, Endian> DebugRanges<'input, Endian> where Endian: Endianity[src]
fn new(debug_ranges_section: &'input [u8]) -> DebugRanges<'input, Endian>
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::<LittleEndian>::new(read_debug_ranges_section_somehow());
fn ranges(&self,
offset: DebugRangesOffset,
address_size: u8,
base_address: u64)
-> Result<RangesIter<Endian>>
offset: DebugRangesOffset,
address_size: u8,
base_address: u64)
-> Result<RangesIter<Endian>>
Iterate over the Range list entries starting at the given offset.
The address_size must be match the compilation unit for this range list.
The base_address should be obtained from the DW_AT_low_pc attribute in the
DW_TAG_compile_unit entry for the compilation unit that contains this range list.
Can be used with
FallibleIterator.
fn raw_ranges(&self,
offset: DebugRangesOffset,
address_size: u8)
-> Result<RawRangesIter<Endian>>
offset: DebugRangesOffset,
address_size: u8)
-> Result<RawRangesIter<Endian>>
Iterate over the raw Range list entries starting at the given offset.
The address_size must be match the compilation unit for this range list.
This iterator does not perform any processing of the range entries, such as handling base addresses.
Can be used with
FallibleIterator.
Trait Implementations
impl<'input, Endian: Debug> Debug for DebugRanges<'input, Endian> where Endian: Endianity[src]
impl<'input, Endian: Clone> Clone for DebugRanges<'input, Endian> where Endian: Endianity[src]
fn clone(&self) -> DebugRanges<'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