Struct gimli::write::CommonInformationEntry
source · pub struct CommonInformationEntry {
pub personality: Option<(DwEhPe, Address)>,
pub lsda_encoding: Option<DwEhPe>,
pub fde_address_encoding: DwEhPe,
pub signal_trampoline: bool,
/* private fields */
}
Expand description
A common information entry. This contains information that is shared between FDEs.
Fields§
§personality: Option<(DwEhPe, Address)>
The address of the personality function and its encoding.
lsda_encoding: Option<DwEhPe>
The encoding to use for the LSDA address in FDEs.
If set then all FDEs which use this CIE must have a LSDA address.
fde_address_encoding: DwEhPe
The encoding to use for addresses in FDEs.
signal_trampoline: bool
True for signal trampolines.
Implementations§
source§impl CommonInformationEntry
impl CommonInformationEntry
sourcepub fn new(
encoding: Encoding,
code_alignment_factor: u8,
data_alignment_factor: i8,
return_address_register: Register,
) -> Self
pub fn new( encoding: Encoding, code_alignment_factor: u8, data_alignment_factor: i8, return_address_register: Register, ) -> Self
Create a new common information entry.
The encoding version must be a CFI version, not a DWARF version.
sourcepub fn add_instruction(&mut self, instruction: CallFrameInstruction)
pub fn add_instruction(&mut self, instruction: CallFrameInstruction)
Add an initial instruction.
Trait Implementations§
source§impl Clone for CommonInformationEntry
impl Clone for CommonInformationEntry
source§fn clone(&self) -> CommonInformationEntry
fn clone(&self) -> CommonInformationEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommonInformationEntry
impl Debug for CommonInformationEntry
source§impl Hash for CommonInformationEntry
impl Hash for CommonInformationEntry
source§impl PartialEq for CommonInformationEntry
impl PartialEq for CommonInformationEntry
impl Eq for CommonInformationEntry
impl StructuralPartialEq for CommonInformationEntry
Auto Trait Implementations§
impl Freeze for CommonInformationEntry
impl RefUnwindSafe for CommonInformationEntry
impl Send for CommonInformationEntry
impl Sync for CommonInformationEntry
impl Unpin for CommonInformationEntry
impl UnwindSafe for CommonInformationEntry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.