mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 04:43:17 +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:
@ -828,8 +828,7 @@ update_solib_list (int from_tty)
|
||||
unloaded before we remove it from GDB's tables. */
|
||||
observer_notify_solib_unloaded (gdb);
|
||||
|
||||
VEC_safe_push (char_ptr, current_program_space->deleted_solibs,
|
||||
xstrdup (gdb->so_name));
|
||||
current_program_space->deleted_solibs.push_back (gdb->so_name);
|
||||
|
||||
*gdb_link = gdb->next;
|
||||
|
||||
|
Reference in New Issue
Block a user