Struct gimli::write::Unit [−][src]
pub struct Unit {
pub line_program: LineProgram,
pub ranges: RangeListTable,
pub locations: LocationListTable,
// some fields omitted
}A unit’s debugging information.
Fields
line_program: LineProgramThe line number program for this unit.
ranges: RangeListTableA table of range lists used by this unit.
locations: LocationListTableA table of location lists used by this unit.
Implementations
impl Unit[src]
impl Unit[src]pub fn new(encoding: Encoding, line_program: LineProgram) -> Self[src]
Create a new Unit.
pub fn encoding(&self) -> Encoding[src]
Return the encoding parameters for this unit.
pub fn version(&self) -> u16[src]
Return the DWARF version for this unit.
pub fn address_size(&self) -> u8[src]
Return the address size in bytes for this unit.
pub fn format(&self) -> Format[src]
Return the DWARF format for this unit.
pub fn count(&self) -> usize[src]
Return the number of DebuggingInformationEntrys created for this unit.
This includes entries that no longer have a parent.
pub fn root(&self) -> UnitEntryId[src]
Return the id of the root entry.
pub fn add(&mut self, parent: UnitEntryId, tag: DwTag) -> UnitEntryId[src]
Add a new DebuggingInformationEntry to this unit and return its id.
The parent must be within the same unit.
Panics
Panics if parent is invalid.