Change program_space::added_solibs to a std::vector

This changes program_space::added_solibs to a std::vector, removing a
VEC.

Tested by the buildbot.

gdb/ChangeLog
2018-05-29  Tom Tromey  <tom@tromey.com>

	* progspace.h (so_list_ptr): Remove typedef.  Don't declare VEC.
	(struct program_space) <added_solibs>: Now a std::vector.
	* breakpoint.c (print_solib_event): Update.
	(check_status_catch_solib): Update.
	* progspace.c (clear_program_space_solib_cache): Update.
	* solib.c (update_solib_list): Update.
This commit is contained in:
Tom Tromey
2018-05-29 00:38:23 -06:00
parent 894882e344
commit bcb430e4cd
5 changed files with 18 additions and 23 deletions

View File

@ -36,9 +36,6 @@ struct address_space;
struct program_space_data;
struct address_space_data;
typedef struct so_list *so_list_ptr;
DEF_VEC_P (so_list_ptr);
/* A program space represents a symbolic view of an address space.
Roughly speaking, it holds all the data associated with a
non-running-yet program (main executable, main symbols), and when
@ -207,7 +204,7 @@ struct program_space
/* When an solib is added, it is also added to this vector. This
is so we can properly report solib changes to the user. */
VEC (so_list_ptr) *added_solibs = NULL;
std::vector<struct so_list *> added_solibs;
/* When an solib is removed, its name is added to this vector.
This is so we can properly report solib changes to the user. */