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 export/function name shown in a debugger frame.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SubprogramInfo
impl RefUnwindSafe for SubprogramInfo
impl Send for SubprogramInfo
impl Sync for SubprogramInfo
impl Unpin for SubprogramInfo
impl UnsafeUnpin for SubprogramInfo
impl UnwindSafe for SubprogramInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more