MiValues.GdbMiSession.dataEvaluateRange
MiValue[] dataEvaluateRange(string rangeExpr, int maxElements = 100) @trustedEvaluates a D range and returns its elements.
For ranges with a .length property and indexing, this method uses index-based access and does not mutate the debuggee range.
For generic ranges (no .length), this method falls back to calling .empty, .front, and .popFront() on the range in the debuggee. This consumes the range in the debuggee program — the range will be left in a partially or fully consumed state after this call.
The program must be stopped and supporting function calls.
Parameters
rangeExpr | Expression representing the range. |
maxElements | Maximum number of elements to fetch. |
Returns
Array of elements as
Throws
GdbException on error.