pub fn find_breakpoint_location<'a, R: Reader<Offset = usize>>(
dwarf: &'a Dwarf<R>,
cwd: &str,
path: &str,
line: NonZeroU64,
column: Option<NonZeroU64>,
) -> Result<Option<u64>>
Expand description
Find the machine code address that corresponds to a line in the source file.
Description:
dwarf
- A reference to gimli-rsDwarf
struct.cwd
- The work directory of the debugged program.path
- The relative path to the source file from the work directory of the debugged program.line
- A line number in the source program.column
- A optional column number in the source program.
Finds the machine code address that is generated from the given source code file and line number. If there are multiple machine codes for that line number it takes the first one and the one.