Struct binaryninja::debuginfo::DebugInfoParser
source · pub struct DebugInfoParser { /* private fields */ }
Expand description
Represents the registered parsers and providers of debug information to Binary Ninja.
See binaryninja::debuginfo
for more information
Implementations§
source§impl DebugInfoParser
impl DebugInfoParser
sourcepub fn from_name<S: BnStrCompatible>(name: S) -> Result<Ref<Self>, ()>
pub fn from_name<S: BnStrCompatible>(name: S) -> Result<Ref<Self>, ()>
Returns debug info parser of the given name, if it exists
sourcepub fn list() -> Array<DebugInfoParser>
pub fn list() -> Array<DebugInfoParser>
List all debug-info parsers
sourcepub fn parsers_for_view(bv: &BinaryView) -> Array<DebugInfoParser>
pub fn parsers_for_view(bv: &BinaryView) -> Array<DebugInfoParser>
Returns a list of debug-info parsers that are valid for the provided binary view
sourcepub fn is_valid_for_view(&self, view: &BinaryView) -> bool
pub fn is_valid_for_view(&self, view: &BinaryView) -> bool
Returns whether this debug-info parser is valid for the provided binary view
sourcepub fn parse_debug_info(
&self,
view: &BinaryView,
debug_file: &BinaryView,
existing_debug_info: Option<&DebugInfo>,
progress: Option<Box<dyn Fn(usize, usize) -> Result<(), ()>>>
) -> Option<Ref<DebugInfo>>
pub fn parse_debug_info( &self, view: &BinaryView, debug_file: &BinaryView, existing_debug_info: Option<&DebugInfo>, progress: Option<Box<dyn Fn(usize, usize) -> Result<(), ()>>> ) -> Option<Ref<DebugInfo>>
Returns a DebugInfo
object populated with debug info by this debug-info parser. Only provide a DebugInfo
object if you wish to append to the existing debug info
pub fn register<S, C>(name: S, parser_callbacks: C) -> Ref<Self>where
S: BnStrCompatible,
C: CustomDebugInfoParser,
Trait Implementations§
source§impl CoreArrayProvider for DebugInfoParser
impl CoreArrayProvider for DebugInfoParser
source§impl Hash for DebugInfoParser
impl Hash for DebugInfoParser
source§impl PartialEq for DebugInfoParser
impl PartialEq for DebugInfoParser
source§fn eq(&self, other: &DebugInfoParser) -> bool
fn eq(&self, other: &DebugInfoParser) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToOwned for DebugInfoParser
impl ToOwned for DebugInfoParser
§type Owned = Ref<DebugInfoParser>
type Owned = Ref<DebugInfoParser>
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for DebugInfoParser
impl StructuralPartialEq for DebugInfoParser
Auto Trait Implementations§
impl RefUnwindSafe for DebugInfoParser
impl !Send for DebugInfoParser
impl !Sync for DebugInfoParser
impl Unpin for DebugInfoParser
impl UnwindSafe for DebugInfoParser
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