Struct gimli::LocationLists [−][src]
pub struct LocationLists<R: Reader> { /* fields omitted */ }
The DWARF data found in .debug_loc and .debug_loclists sections.
Methods
impl<R: Reader> LocationLists<R>[src]
impl<R: Reader> LocationLists<R>pub fn new(
debug_loc: DebugLoc<R>,
debug_loclists: DebugLocLists<R>
) -> Result<LocationLists<R>>[src]
pub fn new(
debug_loc: DebugLoc<R>,
debug_loclists: DebugLocLists<R>
) -> Result<LocationLists<R>>Construct a new LocationLists instance from the data in the .debug_loc and
.debug_loclists sections.
pub fn locations(
&self,
offset: LocationListsOffset<R::Offset>,
unit_version: u16,
address_size: u8,
base_address: u64
) -> Result<LocListIter<R>>[src]
pub fn locations(
&self,
offset: LocationListsOffset<R::Offset>,
unit_version: u16,
address_size: u8,
base_address: u64
) -> Result<LocListIter<R>>Iterate over the LocationListEntrys starting at the given offset.
The unit_version and address_size must match the compilation unit that the
offset was contained in.
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 location
list.
Can be used with
FallibleIterator.
pub fn raw_locations(
&self,
offset: LocationListsOffset<R::Offset>,
unit_version: u16,
address_size: u8
) -> Result<RawLocListIter<R>>[src]
pub fn raw_locations(
&self,
offset: LocationListsOffset<R::Offset>,
unit_version: u16,
address_size: u8
) -> Result<RawLocListIter<R>>Iterate over the raw LocationListEntrys starting at the given offset.
The unit_version and address_size must match the compilation unit that the
offset was contained in.
This iterator does not perform any processing of the location entries, such as handling base addresses.
Can be used with
FallibleIterator.
Trait Implementations
impl<R: Debug + Reader> Debug for LocationLists<R>[src]
impl<R: Debug + Reader> Debug for LocationLists<R>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R: Clone + Reader> Clone for LocationLists<R>[src]
impl<R: Clone + Reader> Clone for LocationLists<R>fn clone(&self) -> LocationLists<R>[src]
fn clone(&self) -> LocationLists<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)Performs copy-assignment from source. Read more
impl<R: Copy + Reader> Copy for LocationLists<R>[src]
impl<R: Copy + Reader> Copy for LocationLists<R>Auto Trait Implementations
impl<R> Send for LocationLists<R> where
R: Send,
impl<R> Send for LocationLists<R> where
R: Send, impl<R> Sync for LocationLists<R> where
R: Sync,
impl<R> Sync for LocationLists<R> where
R: Sync,