pub fn evaluate_pieces<R: Reader<Offset = usize>, T: MemoryAccess>(
dwarf: &Dwarf<R>,
unit: &Unit<R>,
pc: u32,
expr: Expression<R>,
frame_base: Option<u64>,
registers: &Registers,
mem: &mut T,
) -> Result<Vec<Piece<R>>>
Expand description
Evaluates a gimli-rs Expression
into a Vec
of Piece
s.
Description:
dwarf
- A reference to gimli-rsDwarf
struct.unit
- A compilation unit which contains the given DIE.pc
- A machine code address, usually the current code location.expr
- The expression to be evaluated intoPiece
s.frame_base
- The frame base address value.registers
- A register struct for accessing the register values.mem
- A struct for accessing the memory of the debug target.
This function will evaluate the given expression into a list of pieces. These pieces describe the size and location of the variable the given expression is from.