pub struct InputDwarfLine {
pub rows: Vec<LineRow>,
pub code_base: u32,
pub files: Vec<(String, String)>,
}Expand description
Result of reading the input wasm’s DWARF line table: the parsed rows plus the
code-section payload start (code_base) the op-offset compose subtracts.
Fields§
§rows: Vec<LineRow>Code-section-relative .debug_line rows (addr is a wasm code byte
offset; for the synth bridge that equals the DWARF address space).
code_base: u32Module-relative byte offset of the code section payload start. Empty wasm or a wasm with no code section reports 0.
files: Vec<(String, String)>GLOBAL source-file table (directory, file name). LineRow.file indexes
into this — NOT the input’s per-unit DWARF file index. The input wasm has
several compilation units each with their own file table (colliding
per-unit indices), so the reader resolves every row’s file to a real
(dir, name) string and interns it here, giving one flat table the emit
reproduces 1:1. Empty when no row resolves to a file (emit then falls back
to its single-file default).
Trait Implementations§
Source§impl Clone for InputDwarfLine
impl Clone for InputDwarfLine
Source§fn clone(&self) -> InputDwarfLine
fn clone(&self) -> InputDwarfLine
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more