Struct rust_debug::source_information::SourceInformation [−][src]
pub struct SourceInformation {
pub directory: Option<String>,
pub file: Option<String>,
pub line: Option<u64>,
pub column: Option<u64>,
}Expand description
Contains all the information about where the code was declared in the source code.
Fields
directory: Option<String>The source code directory where the debug information was declared.
file: Option<String>The relative source code file path where the debug information was declared.
line: Option<u64>The source code line number where the debug information was declared.
column: Option<u64>The source code column number where the debug information was declared.
Implementations
pub fn get_die_source_information<R: Reader<Offset = usize>>(
dwarf: &Dwarf<R>,
unit: &Unit<R>,
die: &DebuggingInformationEntry<'_, '_, R>,
cwd: &str
) -> Result<SourceInformation>
pub fn get_die_source_information<R: Reader<Offset = usize>>(
dwarf: &Dwarf<R>,
unit: &Unit<R>,
die: &DebuggingInformationEntry<'_, '_, R>,
cwd: &str
) -> Result<SourceInformation>
Retrieves the information about where the given DIE was declared in the source code.
Description:
dwarf- A reference to gimli-rsDwarfstruct.unit- A reference to gimli-rsUnitstruct, which the given DIE is located in.die- A reference to the DIE containing attributes starting withDW_AT_decl_.cwd- The work directory of the debugged program.
This function will retrieve the information stored in the attributes starting with
DW_AT_decl_ from the given DIE>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SourceInformation
impl Send for SourceInformation
impl Sync for SourceInformation
impl Unpin for SourceInformation
impl UnwindSafe for SourceInformation
Blanket Implementations
Mutably borrows from an owned value. Read more