aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-12-11 09:33:36 -0700
committerTom Tromey <tom@tromey.com>2020-12-11 09:33:37 -0700
commitd8f168ddd08f1d5fde1a193724cdc40d524039a7 (patch)
tree5f6679f48c8d8d0d2c0e4ae44bf61f2d0a7c9e32 /gdb/varobj.h
parent76deb5d9181416cb7ea68764db13e7059d48a46c (diff)
downloadgdb-d8f168ddd08f1d5fde1a193724cdc40d524039a7.zip
gdb-d8f168ddd08f1d5fde1a193724cdc40d524039a7.tar.gz
gdb-d8f168ddd08f1d5fde1a193724cdc40d524039a7.tar.bz2
Change all_root_varobjs to take a function_view
This changes all_root_varobjs to take a function_view. This simplifies some of the callers, in particular we can remove a data type that only existed to be passed through. gdb/ChangeLog 2020-12-11 Tom Tromey <tom@tromey.com> * varobj.h (all_root_varobjs): Take a function_view. * varobj.c (all_root_varobjs): Take a function_view. (varobj_invalidate_iter): Remove unused parameter. (varobj_invalidate): Update. * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove. (mi_cmd_var_update_iter): Change parameters.
Diffstat (limited to 'gdb/varobj.h')
-rw-r--r--gdb/varobj.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/varobj.h b/gdb/varobj.h
index 7831e76..abf3336 100644
--- a/gdb/varobj.h
+++ b/gdb/varobj.h
@@ -309,8 +309,7 @@ extern std::string varobj_get_value (struct varobj *var);
extern bool varobj_set_value (struct varobj *var, const char *expression);
-extern void all_root_varobjs (void (*func) (struct varobj *var, void *data),
- void *data);
+extern void all_root_varobjs (gdb::function_view<void (struct varobj *var)>);
extern std::vector<varobj_update_result>
varobj_update (struct varobj **varp, bool is_explicit);