From 54333c3bf8e54fd15d4d3603c3877e080542b662 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 30 Jul 2009 13:12:54 +0000 Subject: gdb/ Replace public function varobj_list by all_root_varobjs iterator. * mi/mi-cmd-var.c (struct mi_cmd_var_update, mi_cmd_var_update_iter): New. (mi_cmd_var_update): Replace the varobj_list call by all_root_varobjs. Remove the variables rootlist, cr. New variable data. * varobj.c (rootcount, varobj_list): Remove. (install_variable, uninstall_variable): Remove the rootcount updates. (all_root_varobjs): New function. (varobj_invalidate): Use the all_root_varobjs call. Move the code to... (varobj_invalidate_iter): ... a new function. * varobj.h (varobj_list): Remove the prototype. (all_root_varobjs): New prototype. --- gdb/varobj.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/varobj.h') diff --git a/gdb/varobj.h b/gdb/varobj.h index c1ad099..7297243 100644 --- a/gdb/varobj.h +++ b/gdb/varobj.h @@ -137,7 +137,8 @@ extern char *varobj_get_value (struct varobj *var); extern int varobj_set_value (struct varobj *var, char *expression); -extern int varobj_list (struct varobj ***rootlist); +extern void all_root_varobjs (void (*func) (struct varobj *var, void *data), + void *data); extern VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit); -- cgit v1.1