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]
pub fn new(
debug_loc: DebugLoc<R>,
debug_loclists: DebugLocLists<R>
) -> Result<LocationLists<R>>
[src]
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]
&self,
offset: LocationListsOffset<R::Offset>,
unit_version: u16,
address_size: u8,
base_address: u64
) -> Result<LocListIter<R>>
Iterate over the LocationListEntry
s 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]
&self,
offset: LocationListsOffset<R::Offset>,
unit_version: u16,
address_size: u8
) -> Result<RawLocListIter<R>>
Iterate over the raw LocationListEntry
s 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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<R: Clone + Reader> Clone for LocationLists<R>
[src]
fn clone(&self) -> LocationLists<R>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<R: Copy + Reader> Copy for LocationLists<R>
[src]
Auto Trait Implementations
impl<R> Send for LocationLists<R> where
R: Send,
R: Send,
impl<R> Sync for LocationLists<R> where
R: Sync,
R: Sync,