IExpressionEvaluatorEvaluateExpression Method

Asks GDB to evaluate a given C/C++ expression and returns a structured result.

Definition

Namespace: VisualGDBExpressions
Assembly: VisualGDBExpressions (in VisualGDBExpressions.dll) Version: 5.6.109.1 (5.6.109.4849)
C#
ExpressionValue EvaluateExpression(
	string exp,
	string typeHint
)

Parameters

exp  String
Specifies the expression to evaluate.
typeHint  String
Specifies the optional expected C++ type. This parameter is used to detect pointers and convert them to ExpressionValue.Integral with correct flags.

Return Value

ExpressionValue
If the evaluation fails, the method returns null. Otherwise it returns structured information about the expression represented in an ExpressionValue object.

Remarks

Note that this method cannot be used to evaluate the expression children and get additional expression attributes. If you require more information about the expression, use the CreateExpression() method instead.

See Also