mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-30 15:56:36 +08:00
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:
@ -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 {};
|
||||
|
Reference in New Issue
Block a user