GdbMiSession.varCreate

MiPendingCommand varCreate(string expression, string name = "-", string frame = "*") @trusted

Creates a variable object.

Parameters

expressionExpression to track.
nameName of the variable object (use "" for auto-generated).
frameFrame where the expression is valid (use "" for current, "@" for floating).

Returns

A pending command for -var-create.

Example:

auto result = session.varCreate("myVar").wait();