pub fn evaluate_value<R: Reader<Offset = usize>, T: MemoryAccess>(
dwarf: &Dwarf<R>,
pieces: Vec<Piece<R>>,
type_unit: Option<&Unit<R>>,
type_die: Option<&DebuggingInformationEntry<'_, '_, R>>,
registers: &Registers,
mem: &mut T,
) -> Result<EvaluatorValue<R>>
Expand description
Will evaluate the value of the given list of gimli-rs Piece
s.
Description:
dwarf
- A reference to gimli-rsDwarf
struct.pieces
- A list of gimli-rs pieces containing the location information..type_unit
- A compilation unit which contains the given DIE which represents the type of the given expression. None if the expression does not have a type.type_die
- The DIE the represents the type of the given expression. None if the expression does not have a type.registers
- A register struct for accessing the register values.mem
- A struct for accessing the memory of the debug target.
Then it will use the pieces and the type too evaluate and parse the value.