pub struct SubprogramInfo {
pub name: String,
pub low_pc: u64,
pub high_pc: u64,
}Expand description
One function to describe with a DW_TAG_subprogram child DIE (#394, Tier-1)
so a debugger backtrace shows the FUNCTION NAME, not a bare address. Carries
the function’s name and its object-relative [low_pc, high_pc) .text range
(byte offsets against the .text base). The emitter relocates low_pc
against the SAME .text symbol as the CU (addend = low_pc) and writes
high_pc - low_pc as the offset form of DW_AT_high_pc (no relocation).
Fields§
§name: StringThe function name shown in a debugger frame. The caller composes it
with priority name-section name > export name > synthetic func_N
(#394 Tier-1.x), so internal functions carry their real developer-facing
name (e.g. core::panicking::panic_fmt::h...) whenever the input wasm
has a name custom section.
low_pc: u64Object-relative .text byte offset of the function’s first instruction.
high_pc: u64Object-relative .text byte offset one past the function’s last byte.
Trait Implementations§
Source§impl Clone for SubprogramInfo
impl Clone for SubprogramInfo
Source§fn clone(&self) -> SubprogramInfo
fn clone(&self) -> SubprogramInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more