protected CreateVarObject ( string exp, Mono.Debugging.Client.EvaluationOptions options ) : Mono.Debugging.Client.ObjectValue | ||
exp | string | |
options | Mono.Debugging.Client.EvaluationOptions | |
return | Mono.Debugging.Client.ObjectValue |
protected virtual ObjectValue CreateVarObject (string exp, EvaluationOptions options)
{
try {
session.SelectThread (threadId);
exp = exp.Replace ("\"", "\\\"");
GdbCommandResult res = session.RunCommand ("-var-create", "-", "*", "\"" + exp + "\"");
string vname = res.GetValueString ("name");
session.RegisterTempVariableObject (vname);
return CreateObjectValue (exp, res);
} catch {
return ObjectValue.CreateUnknown (exp);
}
}