Struct gimli::BaseAddresses
[−]
[src]
pub struct BaseAddresses { pub cfi: Option<u64>, pub text: Option<u64>, pub data: Option<u64>, // some fields omitted }
Optional base addresses for the relative DW_EH_PE_*
encoded pointers.
During CIE/FDE parsing, if a relative pointer is encountered for a base address that is unknown, an Err will be returned.
use gimli::BaseAddresses; let bases = BaseAddresses::default() .set_cfi(address_of_cfi_section_in_memory) .set_text(address_of_text_section_in_memory) .set_data(address_of_data_section_in_memory);
Fields
cfi: Option<u64>
The address of the current CFI unwind section (.eh_frame
or
.debug_frame
) in memory.
text: Option<u64>
The address of the .text
section in memory.
data: Option<u64>
The address of the .data
section in memory.
Methods
impl BaseAddresses
[src]
fn set_cfi(self, addr: u64) -> Self
Set the CFI section base address.
fn set_text(self, addr: u64) -> Self
Set the .text
section base address.
fn set_data(self, addr: u64) -> Self
Set the .data
section base address.
Trait Implementations
impl Clone for BaseAddresses
[src]
fn clone(&self) -> BaseAddresses
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
impl Default for BaseAddresses
[src]
fn default() -> BaseAddresses
Returns the "default value" for a type. Read more
impl Debug for BaseAddresses
[src]
impl PartialEq for BaseAddresses
[src]
fn eq(&self, __arg_0: &BaseAddresses) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BaseAddresses) -> bool
This method tests for !=
.