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

The address of the current CFI unwind section (.eh_frame or .debug_frame) in memory.

The address of the .text section in memory.

The address of the .data section in memory.

Methods

impl BaseAddresses
[src]

Set the CFI section base address.

Set the .text section base address.

Set the .data section base address.

Trait Implementations

impl Clone for BaseAddresses
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for BaseAddresses
[src]

Returns the "default value" for a type. Read more

impl Debug for BaseAddresses
[src]

Formats the value using the given formatter.

impl PartialEq for BaseAddresses
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for BaseAddresses
[src]