aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-07-30 13:12:54 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-07-30 13:12:54 +0000
commit54333c3bf8e54fd15d4d3603c3877e080542b662 (patch)
tree650dff88223c7b6fea87a5e59e618ce508117ff4 /gdb/varobj.h
parentcab7e4d9d5c513292e9c0b61f3eabab812ea9fb8 (diff)
downloadgdb-54333c3bf8e54fd15d4d3603c3877e080542b662.zip
gdb-54333c3bf8e54fd15d4d3603c3877e080542b662.tar.gz
gdb-54333c3bf8e54fd15d4d3603c3877e080542b662.tar.bz2
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.
Diffstat (limited to 'gdb/varobj.h')
-rw-r--r--gdb/varobj.h3
1 files changed, 2 insertions, 1 deletions
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);