pub struct BinaryImageInfo {
pub name: String,
pub load_address: u64,
pub end_address: u64,
pub is_64_bit: bool,
pub uuid: Option<[u8; 16]>,
pub unwind_info: Option<SectionRef>,
pub eh_frame: Option<SectionRef>,
pub text_section: Option<SectionRef>,
pub sections_resolved: bool,
}Expand description
Information about a loaded binary image, with cached section locations.
Fields§
§name: StringShort name or path of the binary.
load_address: u64Load address (start of __TEXT segment) in virtual memory.
end_address: u64End address (exclusive) in virtual memory.
is_64_bit: boolWhether this is a 64-bit binary.
uuid: Option<[u8; 16]>UUID of the binary (for symbolication).
unwind_info: Option<SectionRef>Cached location of __TEXT,__unwind_info.
eh_frame: Option<SectionRef>Cached location of __TEXT,__eh_frame.
text_section: Option<SectionRef>Cached location of __TEXT,__text.
sections_resolved: boolWhether section locations have been resolved.
Implementations§
Source§impl BinaryImageInfo
impl BinaryImageInfo
Sourcepub fn contains(&self, address: u64) -> bool
pub fn contains(&self, address: u64) -> bool
Returns true if the given address falls within this image.
Sourcepub fn resolve_sections(&mut self, reader: &dyn MemoryReader)
pub fn resolve_sections(&mut self, reader: &dyn MemoryReader)
Resolves section locations from the Mach-O header using the given reader.
Trait Implementations§
Source§impl Clone for BinaryImageInfo
impl Clone for BinaryImageInfo
Source§fn clone(&self) -> BinaryImageInfo
fn clone(&self) -> BinaryImageInfo
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BinaryImageInfo
impl RefUnwindSafe for BinaryImageInfo
impl Send for BinaryImageInfo
impl Sync for BinaryImageInfo
impl Unpin for BinaryImageInfo
impl UnsafeUnpin for BinaryImageInfo
impl UnwindSafe for BinaryImageInfo
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