pub struct ObjectFile { /* private fields */ }Implementations§
Source§impl ObjectFile
impl ObjectFile
pub fn new(file: &File) -> Result<Self>
pub fn from_path(path: &Path) -> Result<Self>
Sourcepub fn id(&self) -> Result<ExecutableId>
pub fn id(&self) -> Result<ExecutableId>
Returns an identifier for the executable using the first 8 bytes of the build id.
Sourcepub fn read_build_id(object: &File<'static>) -> Result<BuildId>
pub fn read_build_id(object: &File<'static>) -> Result<BuildId>
Returns the executable build ID if present. If no GNU build ID and no Go build ID are found it returns the hash of the text section.
Sourcepub fn has_debug_info(&self) -> bool
pub fn has_debug_info(&self) -> bool
Returns whether the object has debug symbols.
pub fn is_dynamic(&self) -> bool
pub fn runtime(&self) -> Runtime
pub fn is_go(&self) -> bool
pub fn go_stop_unwinding_frames(&self) -> Vec<StopUnwindingFrames>
Sourcepub fn elf_load_segments(&self) -> Result<Vec<ElfLoad>>
pub fn elf_load_segments(&self) -> Result<Vec<ElfLoad>>
Retrieves the executable load segments. These are used to convert virtual addresses to offsets in an executable during unwinding and symbolization.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObjectFile
impl RefUnwindSafe for ObjectFile
impl Send for ObjectFile
impl Sync for ObjectFile
impl Unpin for ObjectFile
impl UnsafeUnpin for ObjectFile
impl UnwindSafe for ObjectFile
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