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:
parent
564b1e3f29
commit
6fb16ce6ea
7 changed files with 28 additions and 23 deletions
|
@ -401,8 +401,7 @@ clear_program_space_solib_cache (struct program_space *pspace)
|
|||
{
|
||||
VEC_free (so_list_ptr, pspace->added_solibs);
|
||||
|
||||
free_char_ptr_vec (pspace->deleted_solibs);
|
||||
pspace->deleted_solibs = NULL;
|
||||
pspace->deleted_solibs.clear ();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue