Struct addr2line::Options [] [src]

pub struct Options { /* fields omitted */ }

A builder for configuring a Mapping or BufferMapping.

use addr2line::Options;

let mapping = Options::default()
    .with_functions()
    .build("path/to/some/executable")?;

If with_functions is not added to these options, then Mapping::locate() will always return None for the function name.

Likewise, if with_demangling is not added to these options, then all function names (if any) returned by Mapping::locate() will not be demangled.

Methods

impl Options
[src]

Make the Mapping also include debug information for functions, enabling Mapping::locate() to also indicate what function a given address appears in. This comes at some parsing and lookup cost.

Make the Mapping attempt to demangle Rust and/or C++ symbols. This option implies with_functions.

Finish configuration and build a Mapping.

The target file will be memmap'd, and then gimli is used to parse out the necessary debug symbols, without copying data when possible.

Finish configuration and build a BufferMapping.

Trait Implementations

impl Clone for Options
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Options
[src]

impl Default for Options
[src]

Returns the "default value" for a type. Read more