| Top |
| void | (*IAnjutaDebuggerVariableCallback) () |
| GQuark | ianjuta_debugger_variable_error_quark () |
| gboolean | ianjuta_debugger_variable_assign () |
| gboolean | ianjuta_debugger_variable_create () |
| gboolean | ianjuta_debugger_variable_destroy () |
| gboolean | ianjuta_debugger_variable_evaluate () |
| gboolean | ianjuta_debugger_variable_list_children () |
| gboolean | ianjuta_debugger_variable_update () |
This interface is used to examine and change values of expression. It is based on the MI2 variable object interface of gdb. A variable needs to be created before being able to get or set its value and list its children.
void (*IAnjutaDebuggerVariableCallback) (const IAnjutaDebuggerVariableObject *data,gpointer user_data,GError *err);
This callback function is used to return a IAnjutaDebuggerVariableObject.
data |
a IAnjutaDebuggerVariableObject object |
|
user_data |
user data passed to the function |
|
err |
error |
gboolean ianjuta_debugger_variable_assign (IAnjutaDebuggerVariable *obj,const gchar *name,const gchar *value,GError **err);
Set the value of one variable or child object.
gboolean ianjuta_debugger_variable_create (IAnjutaDebuggerVariable *obj,const gchar *expression,IAnjutaDebuggerVariableCallback callback,gpointer user_data,GError **err);
Create a new variable object in the current thread and frame.
gboolean ianjuta_debugger_variable_destroy (IAnjutaDebuggerVariable *obj,const gchar *name,GError **err);
Delete a previously created variable or child object including its own children.
gboolean ianjuta_debugger_variable_evaluate (IAnjutaDebuggerVariable *obj,const gchar *name,IAnjutaDebuggerGCharCallback callback,gpointer user_data,GError **err);
Get the value of one variable or child object.
gboolean ianjuta_debugger_variable_list_children (IAnjutaDebuggerVariable *obj,const gchar *name,guint from,IAnjutaDebuggerGListCallback callback,gpointer user_data,GError **err);
List and create objects for variable object's children. The backend can returns only a part of the children, in this case a last variable with a NULL name is added to the list given to the callback function. If the remaining children are wanted, this function must be called again with a from argument corresponding to the first missing children.
gboolean ianjuta_debugger_variable_update (IAnjutaDebuggerVariable *obj,IAnjutaDebuggerGListCallback callback,gpointer user_data,GError **err);
List all changed variable objects since the last call.
#define IANJUTA_DEBUGGER_VARIABLE_ERROR ianjuta_debugger_variable_error_quark()
struct IAnjutaDebuggerVariableObject {
gchar *name;
gchar *expression;
gchar *type;
gchar *value;
gboolean changed;
gboolean exited;
gboolean deleted;
gint children;
gboolean has_more;
};
Defines a variable object.
unique variable object name created by backend |
||
corresponding variable name or expression |
||
variable type |
||
variable value |
||
TRUE if the variable has changed |
||
TRUE if the variable is outside current scope |
||
TRUE if the variable has been removed |
||
Number of variable children, -1 if unknown |
||
TRUE if the children value is wrong |