Struct addr2line::Context [] [src]

pub struct Context<R> where
    R: Reader + Sync,
    R::Offset: Sync
{ /* fields omitted */ }

The state necessary to perform address to line translation.

Constructing a Context is somewhat costly, so users should aim to reuse Contexts when performing lookups for many addresses in the same executable.

Methods

impl<'a> Context<EndianBuf<'a, RunTimeEndian>>
[src]

[src]

Construct a new Context.

impl<R> Context<R> where
    R: Reader + Sync,
    R::Offset: Sync
[src]

[src]

Find the source file and line corresponding to the given virtual memory address.

[src]

Return an iterator for the function frames corresponding to the given virtual memory address.

If the probe address is not for an inline function then only one frame is returned.

If the probe address is for an inline function then the first frame corresponds to the innermost inline function. Subsequent frames contain the caller and call location, until an non-inline caller is reached.