Make program_space::deleted_solibs a vector of std::string

This allows removing a usage of free_char_ptr_vec.

gdb/ChangeLog:

	* progspace.h (struct program_space) <deleted_solibs>: Change
	type to std::vector<std::string>.
	* progspace.c (clear_program_space_solib_cache): Adjust.
	* breakpoint.c (print_solib_event): Adjust.
	(check_status_catch_solib): Adjust.
	* solib.c (update_solib_list): Adjust.
	* ui-out.h (class ui_out) <field_string>: New overload.
	* ui-out.c (ui_out::field_string): New overload.
This commit is contained in:
Simon Marchi
2018-03-02 23:22:08 -05:00
parent 564b1e3f29
commit 6fb16ce6ea
7 changed files with 28 additions and 23 deletions

View File

@ -207,7 +207,7 @@ struct program_space
/* When an solib is removed, its name is added to this vector.
This is so we can properly report solib changes to the user. */
VEC (char_ptr) *deleted_solibs = NULL;
std::vector<std::string> deleted_solibs;
/* Per pspace data-pointers required by other GDB modules. */
REGISTRY_FIELDS {};