From 6fb16ce6eaba92b86a22eac58eb0eb61b3fd8804 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 2 Mar 2018 23:22:08 -0500 Subject: 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) : Change type to std::vector. * 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) : New overload. * ui-out.c (ui_out::field_string): New overload. --- gdb/progspace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/progspace.h') diff --git a/gdb/progspace.h b/gdb/progspace.h index c64209c..67c0a24 100644 --- a/gdb/progspace.h +++ b/gdb/progspace.h @@ -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 deleted_solibs; /* Per pspace data-pointers required by other GDB modules. */ REGISTRY_FIELDS {}; -- cgit v1.1