pub struct BreakpadFuncRecord<'d> {
pub multiple: bool,
pub address: u64,
pub size: u64,
pub parameter_size: u64,
pub name: &'d str,
/* private fields */
}Expand description
A function record including line information.
Example: FUNC m c184 30 0 nsQueryInterfaceWithError::operator()(nsID const&, void**) const
Fields§
§multiple: boolWhether this function was referenced multiple times.
address: u64The start address of this function relative to the image base (load address).
size: u64The size of the code covered by this function’s line records.
parameter_size: u64The size of the parameters on the runtime stack.
name: &'d strThe demangled function name.
Implementations§
Source§impl<'d> BreakpadFuncRecord<'d>
impl<'d> BreakpadFuncRecord<'d>
Sourcepub fn parse(data: &'d [u8], lines: Lines<'d>) -> Result<Self, BreakpadError>
pub fn parse(data: &'d [u8], lines: Lines<'d>) -> Result<Self, BreakpadError>
Parses a function record from a set of lines.
The first line must contain the function record itself. The lines iterator may contain line records for this function, which are read until another record isencountered or the file ends.
Sourcepub fn lines(&self) -> BreakpadLineRecords<'d> ⓘ
pub fn lines(&self) -> BreakpadLineRecords<'d> ⓘ
Returns an iterator over line records associated to this function.
Trait Implementations§
Source§impl<'d> Clone for BreakpadFuncRecord<'d>
impl<'d> Clone for BreakpadFuncRecord<'d>
Source§fn clone(&self) -> BreakpadFuncRecord<'d>
fn clone(&self) -> BreakpadFuncRecord<'d>
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 moreSource§impl Debug for BreakpadFuncRecord<'_>
impl Debug for BreakpadFuncRecord<'_>
Source§impl<'d> Default for BreakpadFuncRecord<'d>
impl<'d> Default for BreakpadFuncRecord<'d>
Source§fn default() -> BreakpadFuncRecord<'d>
fn default() -> BreakpadFuncRecord<'d>
Returns the “default value” for a type. Read more
Source§impl PartialEq for BreakpadFuncRecord<'_>
impl PartialEq for BreakpadFuncRecord<'_>
impl Eq for BreakpadFuncRecord<'_>
Auto Trait Implementations§
impl<'d> Freeze for BreakpadFuncRecord<'d>
impl<'d> RefUnwindSafe for BreakpadFuncRecord<'d>
impl<'d> Send for BreakpadFuncRecord<'d>
impl<'d> Sync for BreakpadFuncRecord<'d>
impl<'d> Unpin for BreakpadFuncRecord<'d>
impl<'d> UnwindSafe for BreakpadFuncRecord<'d>
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more