Skip to main content

RTLDDebug

Struct RTLDDebug 

Source
pub struct RTLDDebug {
    pub r_brk: extern "C" fn(),
    pub state: RTLDState,
    pub r_ldbase: usize,
    /* private fields */
}
Expand description

Data structure for sharing debugging information from the run-time dynamic linker for loaded ELF shared objects.

Fields§

§r_brk: extern "C" fn()

This is the address of a function internal to the run-time linker, that will always be called when the linker begins to map in a library or unmap it, and again when the mapping change is complete. The debugger can set a breakpoint at this address if it wants to notice shared object mapping changes.

§state: RTLDState

This state value describes the mapping change taking place when the `r_brk’ address is called.

§r_ldbase: usize

Base address the linker is loaded at.

Implementations§

Source§

impl RTLDDebug

Source

pub fn insert(&mut self, l_addr: usize, name: &str, l_ld: usize)

Source

pub fn insert_first(&mut self, l_addr: usize, name: &str, l_ld: usize)

Trait Implementations§

Source§

impl Send for RTLDDebug

SAFETY: safe as long as caller wraps the instance in a mutex, or similar structure that guarantees exclusive mutable access. Separate instances must not contain pointers to the same LinkMap instance.

Source§

impl Sync for RTLDDebug

SAFETY: safe as long as caller wraps the instance in a mutex, or similar structure that guarantees exclusive mutable access. Separate instances must not contain pointers to the same LinkMap instance.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CastSlice<'_, T> for T

§

fn cast_slice(selves: &[T]) -> &[T]

§

impl<T> CastSliceMut<'_, T> for T

§

fn cast_slice_mut(selves: &mut [T]) -> &mut [T]

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.