Struct gimli::write::DwarfUnit [−][src]
pub struct DwarfUnit {
pub unit: Unit,
pub line_strings: LineStringTable,
pub strings: StringTable,
}Expand description
Writable DWARF information for a single unit.
Fields
unit: UnitA unit. This is primarily stored in the .debug_info section,
but also contains information that is stored in other sections.
line_strings: LineStringTableA table of strings that will be stored in the .debug_line_str section.
strings: StringTableA table of strings that will be stored in the .debug_str section.
Implementations
Create a new DwarfUnit.
Note: you should set self.unit.line_program after creation.
This cannot be done earlier because it may need to reference
self.line_strings.