pub struct ConversionOptions {
pub writer: WriterOptions,
pub include_symbols: bool,
pub dwarf: Option<DwarfImportOptions>,
pub discovery: DiscoveryPolicy,
pub debug_directories: Vec<PathBuf>,
pub debuginfod_urls: Vec<String>,
pub debuginfod_cache: PathBuf,
pub debuginfod_max_download_size: u64,
pub gnu_debugdata_max_decompressed_size: u64,
}convert only.Expand description
Controls ELF/DWARF import and optional companion discovery.
Build from Default and adjust the fields you care about. The defaults
import symbols and DWARF with inline information, search for companion debug
files, and read three environment variables: DEBUGINFOD_URLS for the
servers to try, which is empty unless set, and DEBUGINFOD_CACHE_PATH for
the download cache. Clear
debuginfod_urls or set
discovery to DiscoveryPolicy::Disabled for a
conversion that must not touch the network.
writer selects the output version, but its byte order,
base address, and build ID are overwritten from the image.
See docs::conversion for the discovery order
and what each limit bounds.
Fields§
§writer: WriterOptionsGSYM writer settings.
include_symbols: boolImport ELF STT_FUNC symbols.
dwarf: Option<DwarfImportOptions>DWARF import settings, or None to disable DWARF import.
discovery: DiscoveryPolicyWhether path conversion searches for companion debug files.
debug_directories: Vec<PathBuf>Roots searched for build-ID and mirrored-path debug files.
debuginfod_urls: Vec<String>Debuginfod server URLs tried in order.
debuginfod_cache: PathBufLocal debuginfod cache root.
debuginfod_max_download_size: u64Maximum accepted debuginfod response size in bytes.
gnu_debugdata_max_decompressed_size: u64Maximum decompressed .gnu_debugdata size in bytes.
Trait Implementations§
Source§impl Clone for ConversionOptions
impl Clone for ConversionOptions
Source§fn clone(&self) -> ConversionOptions
fn clone(&self) -> ConversionOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more